Newbie
Thu Jun 14 17:54:43 CDT 2007
Christopher,
Are all the machines XP? I ask because you are using the shudown.exe switches
If a user types a non-numeric character then it will fail
The best place to look is in the script center on Technet:
http://www.microsoft.com/technet/scriptcenter/default.mspx
You'll be better off doing it via WMI:
http://www.microsoft.com/technet/scriptcenter/scripts/desktop/state/dmstvb08.mspx?mfr=true
Lastly. Spoof your e-mail usless you like SPAM
--
Newbie Coder
(It's just a name)
<christopher_board@yahoo.co.uk> wrote in message
news:1181853630.526302.193150@d30g2000prg.googlegroups.com...
> Hi. I am trying to shutdown a group of computers that are on the
> domain using a VBScript. When the user launches the VBScript it will
> ask for the time in seconds before the computer shutdowns. It is being
> done based on the way the command prompt does i.e. shutdown -m \
> \computerName -s -t 00. I know the script will work if I make the
> computer shutdown ignoring the user input but need to know how to do
> it so the user can select how long it will be before it shutdown.
>
> Thanks very much for anyone who can help me in this matter.
>