.ADM file for setting PowerCfg

Posted on 2004-10-11
Last Modified: 2012-06-27
Anyone know what syntax I need to create an .ADM file to set power profiles on a domain to setting 4 (Disable all but display power down) There is a directive I need to follow to shut off the "Standby" ability on all machines. I've tried creating the .ADM file, with no avail. Below is the registry entry i "Could" use, but want to do it via .ADM template:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\PowerCfg]

And here is the ADM file I came up with that did not work:

   CATEGORY "Control Panel"
            POLICY "PowerCfg"
               KEYNAME "Control Panel\PowerCfg"
               VALUENAME "CurrentPowerPolicy"
               VALUEON NUMERIC 4.
   END CATEGORY ; "Control Panel"

Any Ideas what I did wrong. I really prefer not to do this via regedit and a script
Question by:Snakebyte
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 20

Accepted Solution

What90 earned 125 total points
ID: 12283893
Ms seemed to have left any power save setting down to the machine vendors, which is a right pain.

Can't help with the .adm, but have a look at this and see if it does what your looking for.

LVL 71

Expert Comment

by:Chris Dent
ID: 12285024

Is the dot here:


Just a typo?

What error comes up when you try and load the policy in?

If none displays, click on Administrative Templates, select View and Filtering.

Remove the Tick from "Only Show Policies that can be Fully Managed".

All that means if that if you turn off the policy (or set it to not configured) it will not restore the original registry value.

Hope that helps.

Expert Comment

ID: 12285122
Below should enable and disable the power config for you .

Import into ad and then do what Chris discribes above.

All the best

|-------------------------------------------------ADM BELOW---------------------------------------------------|
CATEGORY "Control Panel"
            POLICY "PowerCFG"
                 KEYNAME "Control Panel\PowerCfg"
                  #if version >= 4
                        SUPPORTED !!SUPPORTED_Windows2000

                  #if version >= 3
                        EXPLAIN !!PowerCfg_Help

                  VALUENAME "CurrentPowerPolicy"
                        VALUEOFF NUMERIC 3
                        VALUEON NUMERIC 4

            END POLICY

SUPPORTED_Windows2000="Windows .NET Server family, 2000, XP"

PowerCfg_Help=" Disables the Power Config"

|-------------------------------------------------ADM END---------------------------------------------------|

Author Comment

ID: 12285738

     That's exactly what I was looking for, Thanks. Now all I need is someone to answer my ADS question.  LOL

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
Learn about cloud computing and its benefits for small business owners.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question