Page 2 of 2 <12
Topic Options
#89535 - 02/11/19 05:43 PM Re: new project...
Radimus Moderator Offline
Moderator
*****

Registered: 00/01/06
Posts: 5186
Loc: Tampa, FL
using shawn's (and your concepts)

do something like:
ans=inputbox("hello")
shell ("kix32 \\server\share\log.kix $$log=ans")
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#89536 - 02/11/19 05:51 PM Re: new project...
Radimus Moderator Offline
Moderator
*****

Registered: 00/01/06
Posts: 5186
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.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#89537 - 02/11/19 05:57 PM Re: new project...
Sealeopard Offline
KiX Master
*****

Registered: 01/04/25
Posts: 11161
Loc: Boston, MA, USA
Why not separate those two out? Prompt them during login for their info, write it into a .INI file or database. Then once a day, run an admin script against the populated info and update their accounts accordingly. Finally, once a user has entered their info, put a flag on it so they don't get prompted again.
_________________________
There are two types of vessels, submarines and targets.

Top
#89538 - 02/11/19 06:04 PM Re: new project...
Chris S. Offline
MM club member
*****

Registered: 02/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 - 02/11/19 06:53 PM Re: new project...
Radimus Moderator Offline
Moderator
*****

Registered: 00/01/06
Posts: 5186
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...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 2 of 2 <12


Moderator:  Shawn, ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
3 registered (BradV, AndrewRoom, Arend_) and 147 anonymous users online.
Newest Members
AndrewRoom, 000Raph000, curkus, Ken_Sumrall, Keris2112
17455 Registered Users

Generated in 0.06 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org