#89535 - 2002-11-19 05:43 PM
Re: new project...
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
using shawn's (and your concepts)
do something like: ans=inputbox("hello") shell ("kix32 \\server\share\log.kix $$log=ans")
|
Top
|
|
|
|
#89536 - 2002-11-19 05:51 PM
Re: new project...
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
basically, my current project is to push a script out to the client PCs (not during logon) and prompt them to enter some personal account info (phone number, etc) to populate their AD user account.
Since they do not have permission to do it directly, I need to klugde their info a file, so I can verify it and update AD en mass.
|
Top
|
|
|
|
#89538 - 2002-11-19 06:04 PM
Re: new project...
|
Chris S.
MM club member
   
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
Here's some psuedo code...
code:
; Remote_Send.kix ; Resides on the remote PC. Is executed using WMI Remote Execute -OR- ; AT.exe -OR- JT.exe... $Requestor is piped in from the command line: ; KiX32.exe Remote_Send.kix $Requestor = "@WKSTA" ; Break On SetConsole("Hide")
$Answer=Inputbox("Hello") $nul = SENDMESSAGE($REQUESTOR,$Answer)
Function Inputbox($Question) ; Your xls inputbox function here... EndFunction
|
Top
|
|
|
|
#89539 - 2002-11-19 06:53 PM
Re: new project...
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
ok....
I'm going to use soon.exe to schedule the remote job the remote job will be this kix script:
code:
$=setconsole("minimize") if not %phonenumber% $ans=0 while val($ans)<100 or val($ans)>250 $ans = xlsInputBox("Please enter your Phone extension number."+@crlf+"Only enter numbers, Example: 160","Collect Phone Extension") loop setm "PhoneNumber=(xxx) 345-7520 x$ans" endif
and I will use WMIQuery("name","Win32_Environment",$remotepc,"name","PhoneNumber") to push script and/or update AD...
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 44 anonymous users online.
|
|
|