Tefters Posted October 21, 2024 Posted October 21, 2024 Morning all, What are people currently using to shutdown their PC's every night? I previous used PowerShell scripts which read all the computers from AD and then sent a shutdown command to them from a DC but as of a year ago it has become rather unstable and hangs for no particular reason so curious about other methods.
Jaan Posted October 21, 2024 Posted October 21, 2024 We have PDQ here.... and we have the option to use Impero also.
Rob_D Posted October 21, 2024 Posted October 21, 2024 We're using a 3rd party tool (but I'm pretty sure that's just using powershell to read AD OUs and send a shutdown command). Previously, I've used a text file of computer names exported from AD and read by a powershell/batch script (but that was a really small school), or a GPO provisioned scheduled task. 1
Olliedawg Posted October 21, 2024 Posted October 21, 2024 Group policy with a scheduled task. Only applies to desktop machines in school (IT rooms, classroom's, offices etc..). Runs every night at 8:30 runs shutdown /s /t 0
CHiLL Posted October 21, 2024 Posted October 21, 2024 We have Impero and utilise it's shutdown options on specific groups of devices.
NegativeKillDeath Posted October 21, 2024 Posted October 21, 2024 SCCM power management to set peak and off-peak power settings. Different settings targeted to different collection so that some PC will remain on later in the evening.
msi_school Posted October 21, 2024 Posted October 21, 2024 A number of nightly PS exec script running from a scheduled task on a server, that do different rooms/areas and the electronic signage. I find this is easier to make changes too for parent evenings and etc. where they want certain devices left on later. Although it shuts the devices down one at a time it takes a while to finish.
ovenchips Posted October 21, 2024 Posted October 21, 2024 Just a simple GPO Scheduled task here, all desktops go down at 7PM
David44 Posted October 21, 2024 Posted October 21, 2024 Just a simple GPO Scheduled task here, all desktops go down at 7PM What do you do about open evenings? Can you quickly update the scheduled tasks on every PCs so they don't run that day?
Tefters Posted October 21, 2024 Author Posted October 21, 2024 Cheers lads, PS Shutdown script will be my next hit. Dunno why my PowerShell scripts are hanging / inconsistent anymore, ran them for years and everything worked great.
DavR Posted October 21, 2024 Posted October 21, 2024 What do you do about open evenings? Can you quickly update the scheduled tasks on every PCs so they don't run that day? We run a scheduled task via GPO as well, but, we don't run ours til 9pm for the above reason. Bit of a shame to leave so many workstations running for up to 2hrs/day extra, but trying to change or exclude devices for evening events was just too much extra complication. 1
jthompson Posted October 21, 2024 Posted October 21, 2024 How about having a local scheduled task run a script that first checks for the presence of a file on the network before proceeding with shutting down? If the file isn't there, it skips the shutdown command and leaves the machine up. On an open evening, or whatever, you just need to drop the file into place. You could even have another script on a server scheduled to drop said file so that you can schedule your shutdown exemptions well ahead of time. 2
ovenchips Posted October 23, 2024 Posted October 23, 2024 Yep, we apply the GPO per Room OU, so we just remove the rooms being used the night before and force a gpupdate (and pray)
Sephiroth Posted October 23, 2024 Posted October 23, 2024 We have a GPO scheduled task per day, per timeslot. So there's a 10pm shutdown where every pc goes off; a 5pm shutdown where everything that isn't in a group for exemptions goes off (set by item level targeting), and a 3:30pm task where every curriculum pc goes off (specific OU). When we have a need to stop shutdowns, we just disable the relevant tasks for the specified day, up to 6 days in advance.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now