Jump to content

Change default shutdown option.


bizzybody

Recommended Posts

Adding this to vLite would be very nice. I like having shut down as the default shut down option instead of sleep. Have all the options selectable for default, make everyone happy- except whomever at Microsoft decided sleep would be everyone's default.

Link to comment
Share on other sites


Adding this to vLite would be very nice. I like having shut down as the default shut down option instead of sleep. Have all the options selectable for default, make everyone happy- except whomever at Microsoft decided sleep would be everyone's default.

You can do that in the tweak part

Link to comment
Share on other sites

Sorry that I am asking in your topic BIZZYBODY,

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?

Edited by vovox1
Link to comment
Share on other sites

What about the start menu shut down option. I alwys have the power button to do nothing (just in case) and set the start menu button to shutdown instead of sleep. Maybe TS meant this? It would be nice to be able to set the start menu power button behaviour too.

Link to comment
Share on other sites

That's what I meant, the default option for Shut Down from the Start Menu. It's fairly simple to do from power options, but it's just one more thing to have to change from Microsoft's defaults that would be nice to have pre-set.

Link to comment
Share on other sites

Because in vlite i have the same problem, the tweak for power option doesn't seem to work i execute these commands on install.

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

Link to comment
Share on other sites

What about the start menu shut down option. I alwys have the power button to do nothing (just in case) and set the start menu button to shutdown instead of sleep. Maybe TS meant this? It would be nice to be able to set the start menu power button behaviour too.

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. ?!

Link to comment
Share on other sites

  • 9 months later...
Adding this to vLite would be very nice. I like having shut down as the default shut down option instead of sleep. Have all the options selectable for default, make everyone happy- except whomever at Microsoft decided sleep would be everyone's default.

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

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....

Edited by Arrow22
Link to comment
Share on other sites

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...