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

You can create a command line session script tool, but there is no direct textbox to put the script. This is something we want to do eventually. So you will need to create the vbs and call it with command line session tool.

David Hervieux

signaturesignature

Clock8 yrs

dhervieux wrote:

You can create a command line session script tool, but there is no direct textbox to put the script. This is something we want to do eventually. So you will need to create the vbs and call it with command line session tool.

Well it does not work. I have tried to run the script with ''cscript.exe run.vbs computerlist.txt'' it does not work. I have put that line into run.cmd. If i run it throught remotedesktopmanager it does not work, if i run it directly from explorer then it does.

Clock8 yrs

Can you give me more information, do you get an error ? Have you tried to set the full path?

David Hervieux

signaturesignature

Clock8 yrs

Are you still with the error or the problem is solved...

vpn client

Clock8 yrs

Hi,
The error was resolved in the version 6.0.1.0

David Hervieux

signaturesignature

Clock8 yrs

What do you mean, do you get an error?

David Hervieux

signaturesignature

Clock8 yrs