| Windows 7: Power Button - Start Menu |
09 Dec 2008
|
#19 | | 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise Texas |
Power Button - Start Menu How to Change the Default Windows 7 Start Menu Power Button Action
Last edited by Brink; 11 Mar 2013 at 12:30 PM..
| My System Specs |
| Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
23 Mar 2012
|
#20 | | 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise Texas |

Quote: Originally Posted by mandinga09 Hi All,
Is there a way to push the power button changes to multiple PCs? By that I mean, can I set the power button to "Log Off" on multiple machines with a script? We prefer to log off in our domain instead of shutdown, and it would be nice to set the 'Shut Down' button to 'Log off' on all my PCs (and all my users) in the domain without visiting each machine...
Thanks guys,
M Hello M, and welcome to Seven Forums.
I don't use a domain, but I would think that using OPTION FIVE to set your domain policy would have it enforced on all systems when they logged in to the domain. Hopefully someone with more domain experience will post to verify.
Last edited by Brink; 23 Mar 2012 at 12:41 PM..
Reason: added quote
| My System Specs |
| Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
23 Mar 2012
|
#21 | | Windows 7 Ent x64 SP1 (7601) |
Thanks for the quick response Brink! Unfortunately I do not have access to the GPOs for the domain (and the folks who do are clueless...) so I am forced to accomplish simple Group policy tasks with complicated scripts and deployments via SCCM. Thanks again, lets hope someone knows a way to push this fix with a script. | My System Specs | | OS Windows 7 Ent x64 SP1 (7601) |
23 Mar 2012
|
#22 | | Windows 7 Ultimate x64 SP1 |
If you aren't a domain admin, you won't be able to push out policy. You could write logon scripts, but unless you can assign logon scripts to individuals in AD, they would be useless. I'm not familiar with SCCM, as we don't use it on our domain. Exactly what does it allow you, as a non-domain admin, to do in the domain? | My System Specs | | System Manufacturer/Model Number Dell XPS 15 L502x OS Windows 7 Ultimate x64 SP1 CPU Core i7-2670QM Memory 8GB DDR3 PC3-10600 Graphics Card Intel HD Graphics 3000 + GeForce GT 540M Screen Resolution 1920x1080 Hard Drives 1TB 5400RPM Seagate |
23 Mar 2012
|
#23 | | Windows 7 Ent x64 SP1 (7601) |
Hi keg,
I should clarify: I am a domain admin, just not with access to the DC or GPOs. We have a tiered access model, so only a few people have access to the DCs and I am not one of them. However I have access to pretty much everything else.
SCCM is a tool that allows you to push software and run reports on domain PCs from a central console. We would be dead without it; its a great tool. We use it to install software on up to 1500 PCs at once - push security updates to software, remove unapproved software, report on system hardware, deploy reg hacks... Typically when I need to deploy a fix that I can't get the GPO guys to make, I build a script and deploy it via SCCM, which will ensure 100% compliance every time. This solution is as reliable as a GPO, but more complex for sure.
M | My System Specs | | OS Windows 7 Ent x64 SP1 (7601) |
24 Mar 2012
|
#24 | | Windows 7 Ultimate x64 Service Pack 1 Doncaster, UK |
Here is some code to deploy that should accomplish the task for you. It parses all user profiles on the computer, loads their HKCU hives and then sets the appropriate registry key.
Note that I have just provided the code, as I am not familiar with SCCM and so you will need to incorporate it into a suitable script that can be deployed. I recommend that you test it first before deploying it on a wider scale. Code: ' ################################################
' Start of Routine
' ################################################
Option Explicit
Const ForAppending = 8
Const HKLM = &H80000002
' ################################################
' HKCU reference and value to be used
' ################################################
Const sDwordUserKey = "\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
Const sDwordUserKeyValueName = "Start_PowerButtonAction"
Const sDwordUserKeyValue = "1"
' ################################################
' Main
' ################################################
Dim oReg, oFSO, oFile, oUserSubkey, aUserProfiles, oShell
Dim sProfileLCase, sRegExe, sRegLoad, sRegUnload, sHiveName, sSubPath, sProfile, sValueName, sKeyPathUserProfiles, sValue, ReturnVal
Set oReg = GetObject("winmgmts:\\.\root\default:StdRegProv")
Set oShell = CreateObject ("WScript.Shell")
Set oFSO = CreateObject ("Scripting.FileSystemObject")
' ################################################
' Begin configuration of existing user profiles
' ################################################
sValueName = "ProfileImagePath"
sKeyPathUserProfiles = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
sRegExe = "C:\Windows\system32\reg.exe"
oReg.EnumKey HKLM, sKeyPathUserProfiles, aUserProfiles
' ################################################
' Start of users loop
' ################################################
For Each oUserSubkey In aUserProfiles
sSubPath = sKeyPathUserProfiles & "\" & oUserSubkey
oReg.GetExpandedStringValue HKLM,sSubPath,sValueName,sValue
sProfile = Split(sValue, "\")
sProfileLCase = LCase(sProfile(2))
If sProfileLCase = "system32" Then
ElseIf sProfileLCase = "localservice" Then
ElseIf sProfileLCase = "networkservice" Then
ElseIf sProfileLCase = "serviceprofiles" Then
Else
' ################################################
' Load user's profile hive into a temp location
' ################################################
sHiveName = "TempHive_" & sProfileLCase
sRegLoad = " LOAD HKLM\" & sHiveName & " """ & sValue & "\ntuser.dat"""
oShell.Run sRegExe & sRegLoad, 0, True
' ################################################
' Call Subroutine to change registry key
' ################################################
SetConfigUserHive (sHiveName)
' ################################################
' Unload user's profile hive
' ################################################
sRegUnload = " UNLOAD HKLM\" & sHiveName
oShell.Run sRegExe & sRegUnload, 0, True
End If
Next
' ################################################
' End of users loop
' ################################################
' Default User Profile
' ################################################
sHiveName = "TempHive_DefaultUser"
sRegLoad = " LOAD HKLM\" & sHiveName & " ""C:\Documents and Settings\Default User\ntuser.dat"""
oShell.Run sRegExe & sRegLoad, 0, True
' ################################################
' Call Subroutine to change registry key
' ################################################
SetConfigUserHive (sHiveName)
sRegUnload = " UNLOAD HKLM\" & sHiveName
oShell.Run sRegExe & sRegUnload, 0, True
' ################################################
' Routine exit point
' ################################################
WScript.Quit ()
' ################################################
' Subroutine to change registry key
' ################################################
Sub SetConfigUserHive (sTempHive)
Dim sTempHiveStringKeyPath, sTempHiveDwordKeyPath
' ################################################
' Path of registry key
' ################################################
sTempHiveDwordKeyPath = sTempHive & sDwordUserKey
' ################################################
' Create Dword registry key if non-existant
' ################################################
If oReg.GetDwordValue(HKLM, sTempHiveDwordKeyPath & "\", sDwordUserKeyValueName) <> 0 Then
ReturnVal = oReg.CreateKey(HKLM, sTempHiveDwordKeyPath)
End If
' ################################################
' Create Dword value
' ################################################
ReturnVal = oReg.SetDwordValue(HKLM, sTempHiveDwordKeyPath & "\", sDwordUserKeyValueName, sDwordUserKeyValue)
End Sub
' ################################################
' End of Subroutine
' ################################################ Acknowledgements to Nick Moseley, t3chn1ck | My System Specs | | System Manufacturer/Model Number Dwarf Dwf/11/2012 OS Windows 7 Ultimate x64 Service Pack 1 CPU Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.2GHz) Motherboard ASRock Z77 Extreme4-M Memory 4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB) Graphics Card 2 x AMD Radeon HD7770 1GB CrossFired (OC 1100MHz/1250MHz) Sound Card Realtek High Definition on board solution (ALC 898) Monitor(s) Displays ViewSonic VA1912w Widescreen (VGA) Screen Resolution 1440x900 Keyboard Microsoft Comfort Curve Keyboard 3000 (USB) Mouse Microsoft Comfort Mouse 3000 for Business (USB) PSU XFX Pro Series 850W Semi-Modular Case Gigabyte IF233 Cooling 1 x 120mm Front Inlet 1 x 120mm Rear Exhaust Hard Drives OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0 Internet Speed NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2) Antivirus Avast! 7.0.1474 Browser IE 9 Other Info Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
CTF-430 Tablet & Pen
WEI Score: 7.7/7.9/7.4/7.4/7.9
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter) |
31 Aug 2012
|
#25 | | |
Thanks for such good explanations, but none of these methods work for me. I can change the setting via the power button properties and it shows logoff which is what I want. If I go to the Registry, the value is 1 (log off). The policies are set for log off.
BUT the button still says "Shutdown!"
Any ideas on how to fix this?
Thanks | My System Specs | | System Manufacturer/Model Number Asus P5E3 Deluxe OS Win7 Ult 64 CPU Intel Core 2 Quad CPU Q6700 @ 2.66Ghz Motherboard Asus P5E3 Memory 4 Gig Graphics Card NVIDIA 6600 and 8600 Sound Card MB Monitor(s) Displays Samsung 27 inch P2770HD (3) Case Antec Cooling Case Hard Drives Intel SSD 80Gig ATA |
31 Aug 2012
|
#26 | | 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise Texas |
Hello Tom, and welcome to Seven Forums.
Does your Power button with "Shut down" in the Start Menu happen to have a little shield on it as well??
If so, then this is normal and indicates that you have Windows Updates that need to be installed. Clicking on this "Shut down" button with the shield icon will have Windows 7 install the updates first then shut down. Afterwards your power button will return to what you had it set for.
If this is the case, then you could use the tutorial below to turn this off by not allowing it. Shut Down Windows - Change "Install Updates and Shut Down" as Default
Hope this helps, 
Shawn
Last edited by Brink; 31 Aug 2012 at 12:43 PM..
Reason: typo
| My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
31 Aug 2012
|
#27 | | |
Shawn.
You were RIGHT ON! I powered down and there were updates waiting. Now button is set to Log Off
Thanks a million! | My System Specs | | System Manufacturer/Model Number Asus P5E3 Deluxe OS Win7 Ult 64 CPU Intel Core 2 Quad CPU Q6700 @ 2.66Ghz Motherboard Asus P5E3 Memory 4 Gig Graphics Card NVIDIA 6600 and 8600 Sound Card MB Monitor(s) Displays Samsung 27 inch P2770HD (3) Case Antec Cooling Case Hard Drives Intel SSD 80Gig ATA |
31 Aug 2012
|
#28 | | 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise Texas |
You're most welcome Tom. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 Power Button - Start Menu problems? All times are GMT -5. The time now is 12:01 PM. | |