+ Post New Thread
Results 1 to 6 of 6
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 ...
  1. #1
    jzepeda's Avatar
    Join Date
    Oct 2009
    Location
    California
    Posts
    9
    Thank Post
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0

    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.

    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

  2. #2
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    I believe you can set all these settings in group policy side extensions, so no need for scripts

  3. #3
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    403
    Thank Post
    63
    Thanked 84 Times in 69 Posts
    Rep Power
    60
    client side extensions are the best solution, however this is one i used to use


    Code:
    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

  4. #4
    jzepeda's Avatar
    Join Date
    Oct 2009
    Location
    California
    Posts
    9
    Thank Post
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by box_l View Post
    client side extensions are the best solution, however this is one i used to use


    Code:
    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.

  5. #5
    stevehp's Avatar
    Join Date
    Jul 2008
    Location
    Ohio
    Posts
    101
    Thank Post
    13
    Thanked 18 Times in 15 Posts
    Rep Power
    15
    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.

  6. #6
    chazzy2501's Avatar
    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,723
    Thank Post
    206
    Thanked 254 Times in 206 Posts
    Rep Power
    65
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. disable access to wireless settings on xp clients
    By RabbieBurns in forum Windows Server 2008
    Replies: 2
    Last Post: 26th November 2009, 12:09 AM
  2. Replies: 10
    Last Post: 6th November 2009, 11:12 PM
  3. Replies: 2
    Last Post: 15th September 2008, 08:50 AM
  4. Enable/Disable Proxy Settings (Easy Way)
    By Michael in forum Windows
    Replies: 33
    Last Post: 2nd July 2008, 10:47 AM
  5. Disable power,sleep and hibernate keys
    By Ste_Harve in forum Windows
    Replies: 15
    Last Post: 12th June 2007, 05:07 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •