Windows Thread, How to Disable Power Settings for All Users in Technical; Hello EduGeek,
Our IT dept is getting ready to start deploying software and other updates through GPOs but we have ...
26th January 2010, 10:57 PM #1
How to Disable Power Settings for All Users
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.
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
26th January 2010, 11:10 PM #2
I believe you can set all these settings in group policy side extensions, so no need for scripts
26th January 2010, 11:25 PM #3
client side extensions are the best solution, however this is one i used to use
' Uncomment lines as required
'sCmd="powercfg /setactive ""home/office desk"""
'sCmd="powercfg /setactive ""Portable/Laptop"""
'sCmd="powercfg /setactive ""Presentation"""
sCmd="powercfg /setactive ""Always On"""
'sCmd="powercfg /setactive ""Minimal Power Management"""
'sCmd="powercfg /setactive ""Max Battery"""
26th January 2010, 11:37 PM #4
Thank You BoX,
Originally Posted by box_l
However your code had the same luck as mine. It works if I open it, but not if I try to deploy it.
So how does Client Side Extensions work? Is this an add-on I have to install? I'm getting ready to give that a try now. Thank You.
27th January 2010, 01:50 AM #5
I'm assuming that since you placed this thread in this particular sub forum that your clients run XP? If so then yes they'll need an update. To create these if I'm not mistaken you'll need Server 2008, 2008 R2 or failing that if you have a Vista or 7 machine download this for Vista or this for Windows 7.
Or you could give EZ GPO a shot.
27th January 2010, 10:21 AM #6
You don't need a 2008 server but you will need the gpmc on your workstation.
My workstation is vista and works great. As a quick test I was going to install gpmc on my xp virtual pc but I couldn't get the correct combinations of dot net installed. (I hate it soo much)
EDIT: Installed on XP and I couldn't see the CSE stuff.
Last edited by chazzy2501; 27th January 2010 at 10:34 AM.
By RabbieBurns in forum Windows Server 2008
Last Post: 26th November 2009, 12:09 AM
By dtakias in forum Windows
Last Post: 6th November 2009, 11:12 PM
Last Post: 15th September 2008, 08:50 AM
By Michael in forum Windows
Last Post: 2nd July 2008, 10:47 AM
By Ste_Harve in forum Windows
Last Post: 12th June 2007, 05:07 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)