|
|
|||||||
Guys ... I have been exporting and poking and proding and snapping for what feels like weeks now, trying to figure-out the "magic" bullet for changing power mgmt settings on the user's behalf. Here's my story: We're almost half-way through a very large XP deployment. We "went-out" with screen-saver set to 10 mins and monitor power-off set to 20 mins (way too short I know, but it wasn;t my call). Now of course, we want to move screen-saver to 30 mins (still too short imho but none-the-less) and monitor power-off to 1 hour. Screen saver is a slam-dunk GPO - no probs. Monitor power-off is another matter, power settings (like printers) from a registry standpoint, seems to have one foot in HKCU and one foot in HKLM. In all my snapping and poking - i am getting horrible and inconsistent results. Question is, has anybody "been there" yet ? The other thing is - has anybody played with, or been able to get powercfg.exe running under Windows XP (not 2K3, where its from (iirc)) ... Any thoughts, help appreciated. -Shawn |
||||||||
|
|
|||||||
Some time ago I was looking into do the very same thing, but as it turned out, the issue was dropped and we never needed a solution. The best link/info I found, albeit Win2k, was here: Windows 2000 Power Options Always On Registry setting (The suggestions are down the page a little ways.) Hope this helps. |
||||||||
|
|
|||||||
regmon doesn't do it? |
||||||||
|
|
|||||||
You would think regmon (i use regedit->export, because I am old), would do it but if you read Al's link to thread above, you can see the frustration level of trying to set this setting on the user's behalf (apparently this stuff needs a wkstn restart!) ... excellent link Al, printing it off now. Why oh why does Microsoft make it so hard to manage settings like these. Why do they continue to use registry binary blobs when they know they're not GPO friendly, or even scripted poke friendly. sheesh. |
||||||||
|
|
|||||||
Update: Finally broke-down and opened-up a premier support ticket on this issue. Mostly so that I could hopefully get my hands on this rumored Windows XP version of powercfg.exe. Talked with a very knowledgable MS "server" dude in Dallas by the name of John, and told him our woes, he was very sympathetic. I mentioned the "two" approaches I have been talking up till now, to set power settings on the user's behalf (in an automated fashion). One being a rather large REGPOKE (12k in total) that needed a machine restart to take effect, and the other being this rumored POWERCFG.EXE that is only available in XP SP2 and Windows Server 2K3. John went right for the "powercfg.exe" approach. I told John that I tried the 2K3 version of powercfg.exe but was getting DLL errors with it on Windows XP Sp1. After much tippy-tapping on his keyboard, and hmmming and hahhhing, he said he found an "older" version of powercfg.exe on his internal MS tools share. He mailed it to me and I must say, its a beautiful thing. I have appended the cmdline help to this post. I told John that I also heard tell that this tool required at least Power User priviledge to run. Sure enough, I ran it as a user and got a priviledge violation. All was not lost - I remembered reading Al_Po's thread about the trick to getting this working. Have to change the permissions on one HKLM registry to Users FullControl ... heres the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg Soon as you do that, run powercfg.exe and Bob's your uncle. And it doesn't even require a logoff or restart! You now can fully manage all the power settings on the wkstn from your login script. By the way, before this MS tool there was a third-party package that was for sale, that did this very thing ... Anyway, for anyone deploying new wkstns going-forward - might be wise to preset this key and slap in this powercfg.exe tool as some insurance. -Shawn Code:
Hope this helps someone down-the-road. -Shawn |
||||||||
|
|
|||||||
By the way, the "other" guys at the office here call our bulletin board the "KORG Collective". They're always asking me to "ask the KORG Collective" .... hehee |
||||||||
|
|
|||||||
Awesome. I'll look for you on the instant messenger to get a copy of the powercfg.exe, as you never know when that might come up again for me. |
||||||||
|
|
|||||||
Did you investigate whether just changing the permissions on the HKLM key would enable you to do the other registry hacks without the executable? Just curious whether it might have just been a permissions problem when hacking the registry directly. |
||||||||
|
|
|||||||
The KORG Collective ? Yoda of Korg I am. Futile is resistance. Assimilate you we will. |
||||||||
|
|
|||||||
Shawn, Is there a way for you to send me the "older" powercfg.exe? I need to change the power settings on XP SP1 computers and the powercfg.exe from SP2 won't work. Thanks |
||||||||
|
|
|||||||
sure thing, will dig it up and email you. |
||||||||
|
|
|||||||
Me me me Really nice piece of information here... it's a common mess for environments where users have no privs... Another catch is to disable the power save for NIC's, which otherwise takes the PC in Offline mode... |
||||||||
|
|
|||||||
just sent you a personal message on this bbs, with the details on where I put it. -Shawn |
||||||||
|
|
|||||||
Mats, Sent you a pm too -Shawn |
||||||||
|
|
|||||||
I just wanted to post an update to this thread. You can use the SP2 version of powercfg.exe on XP SP1 if you copy xpsp2res.dll over as well. Additionally, I copied these two files over to a Windows 2000 SP4 workstation and it works! |
||||||||
|
|
|||||||
Hi, did you get the file "powercfg.exe" for the XP SP1 version. iīm also looking for this file, but i canīt find it anywhere. i hope you can send it to me also. please send it to frank.rohm@gmx.de thanks from frank |
||||||||
|
|
|||||||
The EXE should be part of the OS. Not sure if you need to install SP2 to get it but it is on all my SP2 boxes. |
||||||||
|
|
|||||||
I fired-off the SP1 version to Frank in an email. He reports that its works a charm. |