Hi!
I'd like to run shutdown script .vbs which will shut down all the computers listed in .txt file. So basically in a folder is script run.vbs an computerlist.txt. The content of the script is:

-------------------------------------------------------------------------------
Dim objShell, strShutdown

Set Fso = CreateObject("Scripting.FileSystemObject")
Set InputFile = fso.OpenTextFile("Computerlist.txt")

Do While Not (InputFile.atEndOfStream)
Computername = InputFile.ReadLine
set objShell = CreateObject("WScript.Shell")
Ping = objShell.Run("ping -n 1 " & Computername, 0, True)
Select Case Ping
Case 0
' MsgBox "On Line " & " , " & Computername & " , " & Ping
strShutdown = "shutdown -s -t 0 -f -m \\" & Computername
objShell.Run strShutdown
Case 1
' MsgBox "Off Line " & " , " & Computername & " , " & Ping
End Select
Loop

' MsgBox "All done, click to exit"

Wscript.Quit
------------------------------------------------------------------------------

How can i run this script through RemoteDesktopManager? Basically i just want to tun it.

Clock8 yrs

Hi,
You can create a command line session type and a script file. try to run it from the command line session.

David Hervieux

signaturesignature

Clock8 yrs

Are you with the solution because this thing does not work for me so well...

cheap business broadband

Clock8 yrs

Have you tried the shutdown add-on?

David Hervieux

signaturesignature

Clock8 yrs

David Hervieux wrote:

Have you tried the shutdown add-on?

viera lawyer

Clock8 yrs

not yet

viera lawyer

Clock8 yrs