RE: Batch File using Powercfg.exe Won't Run



Hello Baboon,

Sorry for the delay.

I have done some research, and found this requirement may not be resolved
by using group policy. However, I would like to share the following
information with you and hope it is helpful.

Analysis:
====================

Note: You can skip this Analysis section to directly check the suggestions
below. The analysis section is just for your reference.

1. The Power Options setting are mainly saved in the follow registry keys:

[HKEY_CURRENT_USER\Control Panel\PowerCfg]
[HKEY_USERS\.DEFAULT\ Control Panel\PowerCfg]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls
Folder\PowerCfg]

2. Which configuration of Power Scheme does our computer use when no user
logs on?

We have already known that when a use logs on the computer, the settings
saved in the user's key ([HKEY_CURRENT_USER\Control Panel\PowerCfg]) will
be involved. However, if the computer is started up and no user logs on,
which configuration does the computer use?

Based on my research, the Default system profile setting
([HKEY_USERS\.DEFAULT\ Control Panel\PowerCfg]) will be referred.

3. What will our settings be after we log off and then log on use another
account?

If we make two different configurations on these two accounts, we will see
different settings after we log on with another account.

Steps I used:
====================

IMPORTANT NOTE:

1. The method in this section is not an official solution, although it
worked in my test machine. I just listed it here for your reference and
cannot guarantee it will work in any scenario. Thanks for your
understanding.

2. Please perform full backup, and verify the steps in several test
machines first before using it in the product environment.

3. You may still use the previous script for normal logon users.

For your information, I used the following steps in my test machine and
they worked well:

1. On one computer, configure the power settings with administrative
privilege.

2. Open the Registry Editor, then export [HKEY_CURRENT_USER\Control
Panel\PowerCfg] to a reg file.

3. Right click this .reg file, and click Edit. Replace the
"HKEY_CURRENT_USER\" with "HKEY_USERS\.DEFAULT\"

4. Add a line of "[-HKEY_USERS\.DEFAULT\ Control Panel\PowerCfg]" after
"Windows Registry Editor version 5.00". This is to delete the previous
[HKEY_USERS\.DEFAULT\ Control Panel\PowerCfg]. Then the first several lines
in the file should look like:

Windows Registry Editor version 5.00

[-HKEY_USERS\.DEFAULT\ Control Panel\PowerCfg]

[HKEY_USERS\.DEFAULT\ Control Panel\PowerCfg]
"CurrentPowerPolicy"="your number"

Please note, these is a blank line between these sentences, and must be
several blank line at the end of the file.

For more details, please refer to:

How to add, modify, or delete registry subkeys and values by using a
registration entries (.reg) file:
http://support.microsoft.com/kb/310516/en-us

5. Save this .reg file and then import this registry in the same computer
by double-clicking it.

Note: Using the file on a different computer may cause unexpected issues.

If anything is unclear, please feel free to let me know.

I look forward to your reply. Thank you!

Sincerely,
George Yin
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: Batch File using Powercfg.exe Wont Run
    ... We are not in a position to visit the machines. ... We have already known that when a use logs on the computer, ... ([HKEY_USERS\.DEFAULT\ Control Panel\PowerCfg]) ... "Windows Registry Editor version 5.00". ...
    (microsoft.public.windows.group_policy)
  • Re: windows error messages
    ... The Fast User Switching Compatibility service was successfully sent a start control. ... I thought you were talking about the error message box displayed on the screen. ... OK part way there - I followed the MS support instructions down to ACTUALLY viewing the reports and got lost when I did not know what to look for in the three lists of logs. ... You can access Event Viewer by selecting Start, Control Panel, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Change password
    ... Yep, that's another way, and this will give you more control over who and ... "Andrei Ungureanu" wrote in message ... >> After everyone logs in and changes their password, you could then>> increase it to a more desired max age like 90 days. ... >>> At this moment we have a domain with 300 users, no>>> password policy set so far, .Now we need to set a>>> password policy >>> ...
    (microsoft.public.win2000.active_directory)
  • Processing time and IDS traffic
    ... (forensics, anti-virus, IDS, firewalls, etc.) ... What I did was parse the logs into XML records and arranged them into a nice ... strategically placed IDS system and what people get from a IDS system ... - Automatically Control P2P, IM and Spam Traffic ...
    (Focus-IDS)
  • Re: OT (Slightly) ZoneAlarm Problem
    ... When ZA blocks something it logs what it did and what program/process was doing the Bad Thing that triggered it. ... You may need to look under both programs and firewall on the Alerts and Logs page. ... It may be something as simple as an active-X or Java control, media player, or other plugin trying to fire up that you told ZA wasn't allowed to run on your machine via the internet. ...
    (sci.electronics.design)