I have the following piece of code that forcefully logs a user off of a terminal server right away:
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.run "shutdown.exe -L -F"
That works perfectly. I'm trying to introduce the -T variable to it so that it logs off with a warning, but when I do the command doesn't run.
Is this possible?