MSFN Forum: Change default shutdown option. - MSFN Forum

Jump to content


vLite Forum Rules

If you are having issues with Windows after removing components and have come to ask for help, please attach (not paste) your Last Session.ini file to your post to facilitate quicker assistance.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Change default shutdown option. Rate Topic: -----

#1 User is offline   bizzybody 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 316
  • Joined: 08-May 05

Posted 09 May 2008 - 08:32 PM

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.


#2 User is offline   oskingen 

  • MSFN Friend
  • PipPipPipPip
  • Group: Members
  • Posts: 613
  • Joined: 20-January 08
  • OS:none specified
  • Country: Country Flag

Posted 09 May 2008 - 09:36 PM

View Postbizzybody, on May 9 2008, 10:32 PM, said:

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

#3 User is offline   vovox1 

  • Group: Members
  • Posts: 9
  • Joined: 30-April 08

Posted 10 May 2008 - 12:54 AM

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?

This post has been edited by vovox1: 10 May 2008 - 12:55 AM


#4 User is offline   oskingen 

  • MSFN Friend
  • PipPipPipPip
  • Group: Members
  • Posts: 613
  • Joined: 20-January 08
  • OS:none specified
  • Country: Country Flag

Posted 10 May 2008 - 01:02 AM

yeah me too, i have the same problem. i did it in the tweak part and once installed it is the default setting

#5 User is offline   blerk 

  • Newbie
  • Group: Members
  • Posts: 46
  • Joined: 02-February 08

Posted 10 May 2008 - 04:05 AM

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.

#6 User is offline   bizzybody 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 316
  • Joined: 08-May 05

Posted 10 May 2008 - 05:33 PM

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.

#7 User is offline   oskingen 

  • MSFN Friend
  • PipPipPipPip
  • Group: Members
  • Posts: 613
  • Joined: 20-January 08
  • OS:none specified
  • Country: Country Flag

Posted 10 May 2008 - 05:47 PM

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 


#8 User is offline   TranceEnergy 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 963
  • Joined: 23-March 06

Posted 11 May 2008 - 05:49 AM

View Postblerk, on May 10 2008, 11:05 AM, said:

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

#9 User is offline   Arrow22 

  • Newbie
  • Group: Members
  • Posts: 37
  • Joined: 28-February 09

Posted 28 February 2009 - 09:08 PM

View Postbizzybody, on May 9 2008, 09:32 PM, said:

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 &quot;C:\Addons\RegEdits\StartMenuPower.reg&quot;</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


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy