I'm trying to run this simple command using vbscript.
psshutdown.exe -r -m "System is shutting down"
I'm having trouble in Vbscript using the WshShell.Run method because of the additonal quotation marks needed.
I've played around with Chr(34) but still can't get it to work at all.
Any ideas on how I can take the following code and make it work. The -m switch is for the shutdown message. The shutdown message has to be in quotes too.
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run "PsShutdown.exe -r -m "System is shutting down now""