New
#1
VBS script that shutdown other pc in network.
Hi,
I got an VBS script to shutdown pc in network remote..
And i want that the script asks how long to wait untill the pc shutsdown..(120 in the script)Script:
Option Explicit
Dim objShell, strComputer, strInput
Dim strShutdown
Do
strComputer = (InputBox("Computer name", "Computer Name"))
If strComputer <> "" Then
strInput = True
End if
Loop until strInput = True
strShutdown = "shutdown -s -t 120 -f -m \\" & strComputer
set objShell = CreateObject("WScript.Shell")
objShell.run strShutdown
Wscript.Quit
PLEASE HELP!
[sorry if its in the wrong section..and sorry for bad english]