Jump to content

How to Disable Power Settings for All Users


Recommended Posts

Posted

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.

 

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

Posted

client side extensions are the best solution, however this is one i used to use

 

 

set oShell=createobject("wscript.shell")

' 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"""

oShell.run sCmd

 

 

BoX

Posted
client side extensions are the best solution, however this is one i used to use

 

 

set oShell=createobject("wscript.shell")

' 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"""

oShell.run sCmd

 

 

BoX

 

Thank You BoX,

 

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.

Posted

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.

Posted (edited)

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.

Edited by chazzy2501

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...