"Pegasus (MVP)" <> wrote in message
news:ei%...
>
> "Spin" <> wrote in message
> news:...
>> Gurus,
>>
>> I need a script which will when launched, ask for a computer name (and
>> receive operator input), ask for a username (and receive operator input),
>> and then finally ask for a password (and receive operator input). It
>> will then kick off a process to install software on a remote machine. I
>> actually have the last part completed - what I do is call psexec.exe to
>> execute a CMD prompt on the target machine and initiates a silent
>> software installation. Administrator rights on the target machine is
>> assumed, if not, I expect the script to fail. What I need is help on the
>> three "input" parts of the script. Any ideas?
>>
>> --
>> Spin
>
> Download a copy of script56.chm, then have a look at the InputBox method.
.... or, as you already seem to be working with batch, you could do it this
way:
(set/p comp=enter computer name: )
(set/p user=enter user name: )
(set/p pass=enter password: )
psexec \\%comp% -u %user% -p %pass% yourbatch.cmd
/Al
|