Change default shutdown option.
#1
Posted 09 May 2008 - 08:32 PM
#2
Posted 09 May 2008 - 09:36 PM
bizzybody, on May 9 2008, 10:32 PM, said:
You can do that in the tweak part
#3
Posted 10 May 2008 - 12:54 AM
but I have tweaked this and after making an image and installing,
on first start of PC, there was default settings on shutdown button.
What is wrong?
This post has been edited by vovox1: 10 May 2008 - 12:55 AM
#4
Posted 10 May 2008 - 01:02 AM
#5
Posted 10 May 2008 - 04:05 AM
#6
Posted 10 May 2008 - 05:33 PM
#7
Posted 10 May 2008 - 05:47 PM
REM Existing Power Schemes REM Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced) REM Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance) REM Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver) powercfg -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c REM close lid action (0=do nothing, 1=sleep, 2=hibernate, 3=shutdown) powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 REM Power buttons action (0=do nothing, 1=sleep, 2=hibernate, 3=shutdown) powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3 powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3 REM Sleep button action powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1 powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1 REM Start menu power button (0=sleep, 1=hibernate, 2=shutdwon) powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2 powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2 REM ---------------------------------------------------------------------------------------------------------------------- REM Balanced mode powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 REM Power buttons action (0=do nothing, 1=sleep, 2=hibernate, 3=shutdown) powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3 powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3 REM Sleep button action powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1 powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1 REM Start menu power button (0=sleep, 1=hibernate, 2=shutdwon) powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2 powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2 REM ---------------------------------------------------------------------------------------------------------------------- REM Power saver mode powercfg -setacvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 powercfg -setdcvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 REM Power buttons action (0=do nothing, 1=sleep, 2=hibernate, 3=shutdown) powercfg -setacvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3 powercfg -setdcvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3 REM Sleep button action powercfg -setacvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1 powercfg -setdcvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1 REM Start menu power button (0=sleep, 1=hibernate, 2=shutdwon) powercfg -setacvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2 powercfg -setdcvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2
#8
Posted 11 May 2008 - 05:49 AM
blerk, on May 10 2008, 11:05 AM, said:
If you are afraid of this accidental , "Oh No I pushed the power button, girlfriend/boyfriend/friend/whatever id*** that pushed it when u was gaming/watching movies/actually getting some work done, " why dont you look inside bios for the wait-4-seconds-before-powering-off- option. ?!
#9
Posted 28 February 2009 - 09:08 PM
bizzybody, on May 9 2008, 09:32 PM, said:
This was actually very easy...
in your autoattend, place this entry
<settings pass="specialize"> <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RunSynchronousCommand wcm:action="add"> <Description>Set Start Button</Description> <Order>1</Order> <Path>Regedit.exe -s "C:\Addons\RegEdits\StartMenuPower.reg"</Path> </RunSynchronousCommand> </RunSynchronous> </component> </settings>
Those not familiar with xml and are using the WAIK Image Manager,
this is what you do to add a registry file
*WARNING* I use Vista Ultimate x64 image only,
If your target is different, ask for an example here....
- Use image manager to open your Image and your AutoAttend.xml
- Add Component "amd64_Microsoft-Windows-Deployment"
-->"RunSynchronousCommand" "Add Setting to Pass 4 specialize"
It must be run early in the installation to avoid Administrative Priviledge checks
I run this just before my disable UAC regedit (included here)
- Description: Set Start Button
- Order: 1 <-- or whatever you want...
- Path: Regedit.exe -s "C:\Addons\RegEdits\StartMenuPower.reg"
- Will reboot: <-- whatever, I put my UACdisable next then force a reboot
here are the files
Windows Registry Editor Version 5.00 ;------------------------------------------------------------- ; StartMenuPower.reg - Reconfigure Start Menu Power Control Button using Registry [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\User\PowerSchemes\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c\4f971e89-eebd-4455-a8de-9e59040e7347\a7066653-8d6c-40a8-910e-a1f54b84c7e5] "ACSettingIndex"=dword:00000002 "DCSettingIndex"=dword:00000002 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c\4f971e89-eebd-4455-a8de-9e59040e7347\a7066653-8d6c-40a8-910e-a1f54b84c7e5] "ACSettingIndex"=dword:00000002 "DCSettingIndex"=dword:00000002
and
[code]
Windows Registry Editor Version 5.00
;-------------------------------------------------------------
; UACdisable.reg - Disable UAC controls and make things run faster
; Disable User Account Control in Windows Vista (Requires Reboot)
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000002
"ConsentPromptBehaviorUser"=dword:00000001
"EnableLUA"=dword:00000000
; NTFS, Disable 8.3 names and Last Access (speeds up disk access)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"NtfsDisable8dot3NameCreation"=dword:00000001
"NtfsDisableLastAccessUpdate"=dword:00000001
/code]
If more clarification is needed, ask here.
Not many have figured this out (and what a pain for most newbies)
I will be monitoring this thread for a bit....
This post has been edited by Arrow22: 28 February 2009 - 09:11 PM



Help

Back to top









