How to Disable Power Settings for All Users
Hello EduGeek,
Our IT dept is getting ready to start deploying software and other updates through GPOs but we have one big issue. We have computers that go into a hibernate/standby mode and cannot be woken over lan.
The solution we came up with is creating a script that would change the local settings to the 'Always On' scheme. I have a script which I will attach at the bottom. The script runs flawlessly when run on my computer and the student computers. But, if I deploy this script to an OU, the script doesn't seem to be picked up. No errors in logs or anything either. :(
Does anyone have a different approach on how this can be accomplished? And or have an idea why this script is not working? Thank you very much in advance.
Quote:
Dim intSleepTime
intSleepTime = 5000
Set WshShell = WScript.CreateObject("WScript.Shell")
' Set the Default to be "Always On"
' Turn off Hibernation
WshShell.Run "%COMSPEC% /c POWERCFG /SETACTIVE ""Always On"""
WshShell.Run "%COMSPEC% /c POWERCFG /Hibernate Off"
Set WshShell = Nothing
WScript.Quit