none
Disabling switch user, log off and lock from Shut down button

    Question

  • Is it possible to disable the switch user, log off and lock features from the Shut down button, so only restart and sleep appear?
    Saturday, December 05, 2009 5:20 PM

Answers

  • To disable Log off

     

    1. Type regedit in Start menu search box and then hit enter

    2. Navigate to the following key:

     

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

     

    3. In the right-pane, create a new DWORD value named StartMenuLogOff and set value to 1.

     

    To disable switch user

     

    4. Navigate to the following key:

     

    HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion\Policies\System

     

    5. In the right-pane, create a new DWORD value named HideFastUserSwitching and set value to 1.

     

    To disable Lock

     

    6. Under HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion\Policies\System, create a new DWORD value named DisableLockWorkstation and set value to 1.

     

    Then, please restart the computer.

     

    Hope it helps.

     

    Thanks.

    Monday, December 07, 2009 7:02 AM

All replies

  • You want this for which OS?


    Thanks, -Vinod -- "This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use."
    Sunday, December 06, 2009 7:00 PM
    Moderator
  • Sorry, for 7 home premium edition.
    Sunday, December 06, 2009 8:01 PM
  • To disable Log off

     

    1. Type regedit in Start menu search box and then hit enter

    2. Navigate to the following key:

     

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

     

    3. In the right-pane, create a new DWORD value named StartMenuLogOff and set value to 1.

     

    To disable switch user

     

    4. Navigate to the following key:

     

    HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion\Policies\System

     

    5. In the right-pane, create a new DWORD value named HideFastUserSwitching and set value to 1.

     

    To disable Lock

     

    6. Under HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion\Policies\System, create a new DWORD value named DisableLockWorkstation and set value to 1.

     

    Then, please restart the computer.

     

    Hope it helps.

     

    Thanks.

    Monday, December 07, 2009 7:02 AM
  • Thanks, Robinson. It couldn't disable log off (but I could with the other two). I only have this key available:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

    so I'm missing the Explorer folder. Any suggestions?

    • Proposed as answer by bluedog707 Thursday, October 21, 2010 10:07 PM
    Tuesday, December 08, 2009 6:46 AM
  • Thanks, Robinson. It couldn't disable log off (but I could with the other two). I only have this key available:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

    so I'm missing the Explorer folder. Any suggestions?


    Manully create it will resolve this problem. :)
    Wednesday, December 09, 2009 2:29 AM
  • Hello Zhang

    I have tried the steps you described and even tried changing it in the group policy editor and it still does not disable the switch user, for reference it is windows 7 Professional on a domain

    Any suggestions ?

    Thanks

    Mike

    Monday, April 05, 2010 4:22 PM
  • I am also having the same problem.  I cannot disable the switch user for Windows 7 Ultimate on domain.

    Mark

    Thursday, April 15, 2010 2:22 PM
  • cannot disable lock or switch user !
    • Proposed as answer by bluedog707 Thursday, October 21, 2010 10:10 PM
    Thursday, October 21, 2010 10:09 PM
  • cannot disable lock or switch user !

    Thursday, October 21, 2010 10:11 PM
  • 1. Type gpedit.msc in RUN or Startmenu Searchbox and press Enter. It'll open Group Policy Editor.

    2. Now go to: Local Computer Policy -> Administrative Templates -> System -> Logon

    3. In right-side pane, double-click on "Hide entry points for Fast User Switching" option and set it to Enabled.

    Or you can disable it this way through the registry.

    1. Type regedit in RUN or Startmenu Searchbox and press Enter. It'll open Registry Editor.

    2. Now go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

    3. In right-side pane, create a new DWORD value HideFastUserSwitching and set its value to 1

    4. That's it. Now "Switch User" option will be disabled from Welcome screen as well as from Shutdown menu.

    • Proposed as answer by stetl10 Saturday, November 13, 2010 1:30 PM
    Saturday, November 13, 2010 1:29 PM
  • Yes you can.

    Here is the "switch user" disabling.

    run-> gpedit.msc

    Local Computer Policy -> Computer Configuration ->Administrative Templates -> System -> Logon

    -> "Hide entry points for Fast User Switching" - enable

    Now "Switch User" option will be disabled from Welcome screen as well as from Shutdown menu.

    Monday, November 15, 2010 12:38 PM
  • Thxs Travallor, I was searching this one.

    To modify the key in C#, the key in the registry is : HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\HideFastUserSwitching

    regKeyRootMachine.SetValue("HideFastUserSwitching", 1, RegistryValueKind.DWord);

    Regards.

    Tuesday, December 07, 2010 7:07 PM
  • I have tried to disable the switch user option using both the policy editor and de Registry key. From the start menu, users indeed can't select "Switch user"  as it is greyed out.

    However in the login screen the Switch User option still remains. How can this completely be disabled? The machines are members of a domain.

    Any advice is highly appreciated.

     

    Tuesday, January 04, 2011 6:50 PM
  • An unintended side effect of this policy is that users cannot lock the computer anymore.  We have chosenn to leave switch user on so that if one staff member locks the computer and walks away (our classrooms are shared by many teachers), a new teacher can logon with killing the power to the computer to forceably log the first user off.  Since switch user is the only way to prevent a hard power off, turn off switch user also disables the Lock option.
    • Proposed as answer by ANCHORPAC Tuesday, November 03, 2015 2:51 PM
    Tuesday, August 02, 2011 10:18 PM
  • Hi,

    Have you got any solution to remove/disable all items together (shutdown, Restart and Logoff, lock) from Start Menu. I tried these all settings from GP but never worked.

    Any idea?


    Regards Suman B. Singh

    Wednesday, May 02, 2012 4:12 PM
  • Hi, looking for the same thing.... 
    Friday, May 04, 2012 12:36 PM
  • This doesn't work for Windows 7 Starter Edition. Especially the Logoff button stays. Is there any way to remove the LogOff button or preventing the user logoff programaticaly in starter edition.



    Oğuz Köroğlu
    http://oguzkoroglu.net

    Thursday, August 30, 2012 9:54 AM
  • I use a program called 'Classic Shell Start Menu' [http://classicshell.sourceforge.net/] that allows you to customise as you will, even, I believe, the 'Starter/Home' edition - although I cannot attest first hand to this.

    Monday, September 10, 2012 7:25 PM
  • thanks a lot!



    Oğuz Köroğlu
    http://oguzkoroglu.net

    Thursday, September 13, 2012 7:09 AM
  • To disable Log off

    1. Type regedit in Start menu search box and then hit enter

    2. Navigate to the following key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    3. In the right-pane, create a new DWORD value named StartMenuLogOff and set value to 1.

    To disable switch user

    4. Navigate to the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion\Policies\System

    5. In the right-pane, create a new DWORD value named HideFastUserSwitching and set value to 1.

    To disable Lock

    6. Under HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion\Policies\System, create a new DWORD value named DisableLockWorkstation and set value to 1.

    Then, please restart the computer.

    Hope it helps.

    Thanks.

    The Trick why the logoff doesn't work is because of this

    1. Type regedit in Start menu search box and then hit enter

    2. Navigate to the following key:     Note This One    ***HKEY_LOCAL_MACHINE***     Not HKEY_CURRENT_USER

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    3. In the right-pane, create a new DWORD value named StartMenuLogOff and set value to 1.


    This will fix the issue of why it didn't work
    Thursday, January 17, 2013 1:39 PM
  • No, it does not fix the issue for me.

    Log off and lock still exists.

    Tuesday, April 16, 2013 8:38 AM
  • Try use SendMessageTimeout send WM_SETTINGCHANGE to HWND_BROADCAST.

    • Edited by MAXZRV Wednesday, April 24, 2013 5:45 AM
    Wednesday, April 24, 2013 5:44 AM
  • I am having the same problem disabling log off button from the start menu.  I have successfully disabled shutdown, switch user, lock workstation from start menu.  I just have the pesky "log off" hanging on.  I have tried both gpedit and registry tweaks.  I stopped with registry tweaks because more of these were disabled.  

    I would try switching to classic start menu to utilize the gpedit feature "ADD Logoff to the start menu" and set to Disable to hopefully remove it from the start menu; however ...

    the odd thing about "gpedit.msc" User Configuration > Administrative Templates > Start Menu & Task Bar >  "ADD Log off to the start menu" states the following

    description States : This policy only applies to the classic version of the start menu and does not affect the new style start menu.

    so now I am chasing my tail to enable classic start menu on Win 7 which apparently doesn't exist in start menu properties or any where else. However you can download a 3rd party app called "Classic Shell" from source forge.  I don't want third party software to enable something that is obviously hidden on the existing OS..

    Any suggestions greatly appreciated.  

    Windows 7 (64bit) all recent updates as of 06/04/2013.  except IE10 / Registry tweak to auto login a domain user / Registry Tweak to remove shutdown, switch user, lock workstation from start menu.  

    Wednesday, June 05, 2013 11:17 PM