This project created by editing the original script [1] helping to shutdown the devices automatically 5 minutes after it started or helping to shutdown with user choice. The main goal of this project is saving electricity from opened devices. Also, you can deploy by GPO.
[1] https://community.spiceworks.com/topic/544793-shutting-down-pcs-with-user-interactive-user-prompts
CHOICE | DESCRIPTION |
---|---|
Close | Stop the process until next starting time |
Shutdown | Shutdown right now |
Postpone : 1 Hour | Postpone 1 hour and then shutdown automatically |
Postpone : 2 Hours | Postpone 2 hours and then shutdown automatically |
- Create a new GPO and give a name
- Edit your new created GPO
- Go to Computer Configuration -> Preferences -> Control Panel Settings -> Scheduled Tasks
- Create a new scheduled task and give a name
- Choose a trigger time plan
- Create an actions
- Choose PowerShell location on program/script area
- Choose your script location and add this command before the script location to not see PowerShell window when it starts
-NonInteractive -WindowStyle Hidden
on argument area