Help Shutting Down Computer After Sequence

Based on a previous post, I create a .vbs file containing this on my desktop:

Set myShell = WScript.CreateObject(“WScript.Shell”)
myShell.Run “C:\Windows\System32\shutdown.exe /s /f /t 0”

Then in SGP it set the ,vbs file to run at the end of the sequence. Nothing happened.

Can someone help me?

Best guess is that you’ll probably need to run SGP as Admin to execute that script. Although I’m not sure if that script would be executed with elevated permissions either.

Also SGP will block while running scripts so SGP will never completely finish the sequence. I’m assuming you’re running the script as a “Post Event” script? This will cause the “End of Sequence” events to never run so if you count on your scope being parked this likely will not happen.

Thanks,
Jared

Hi,
I have run a similar script in sequence settings and it seems to work.
You have probably seen the post around Jan 16th-24th, Computer shutdown from SGP?
Regards,
Scott.

Hi Robert,

Please try the following:

Assuming Windows 10,

  • right-click on the Start icon and select „Run”
  • Type: cmd and press enter
  • A black window should open (a console window)
  • Type: C:\Windows\System32\shutdown.exe /s /f /t 0
  • Press enter.

What happens now? Do you get some message?

What windows version do you use? Is it the “home” kind?

Regards,
Horia

I found a simple App on the Windows Store that shuts the computer off at a set time. $.99 Works great.