Jump to content

Recommended Posts

Posted

My unattend file is working correctly but how can I disable the powersave function and the sleep function?

I can't found it on the web.

  • 3 weeks later...

Posted

I haven't tested this but try exporting these two registry keys after setting your power configuration the way you want:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
[HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy]

Cheers,

Posted

What you need to do is launch regedit, Navigate to each key I listed above, Right click on the Key, select Export, then save it. It will save as a .reg file. You need to do this for both keys. Make sure your power settings are how you want them before exporting.

You should import these from cmdlines.txt. If you have your own .reg file, just copy the data from the reg files you exported and paste them into your own registry file.

Posted

basically, you can save your current configuration as a file, through the power control panel, then there is a command you run the load the saved config is what i have read on this forum before...

try the following:

[HKEY_CURRENT_USER\Control Panel\PowerCfg]

that is the only key you need to export apparently, then import the file with regedit /s power.reg

or, check out this Microsoft article about POWERCFG.EXE which will do what you want

Microsoft POWERCFG.EXE

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...