How to Remove Shut Down Button from Windows Vista and 7 Login Screens?

Recently we posted a tutorial for removing "Windows Branding Logo" and "Ease of Access" (Accessibility) Button from Windows Vista and 7 Login Screens:

How to Remove "Branding Logo" and "Ease of Access" Button from Login Screen?

Today in this tutorial, we'll tell you how to remove "Shutdown" button from the Login screen!


Here we start the tutorial:

1. We'll need to edit "%windir%\System32\authui.dll" file. First copy authui.dll file from "System32" folder to some other location for example Desktop.

Note: here %windir% represents "Windows" directory which can be found in the system drive where Windows is installed. In most of the cases its C:\Windows.

2. Now open the new file in Resource Hacker.

3. Now press "Ctrl+F" keys or select "Find Text" option from "View" menu.

4. Type Shutdown in Find what text box. Click on "Find Next" button and it'll go to following lines:

<element id="atom(ShutDownFrame)" layout="flowlayout()">
<button id="atom(ShutDown)" accname="resstr(12128)" tooltip="true"/>
<button id="atom(ShutDownOptions)" accname="resstr(12131)" accdesc="resstr(12131)" tooltip="true" shortcut="115"/>

5. Replace the last 2 lines of code with following:

<element id="atom(ShutDownFrame)" layout="flowlayout()">
<button id="atom(ShutDown)" accname="resstr(12128)" tooltip="true" layoutpos="none"/>
<button id="atom(ShutDownOptions)" accname="resstr(12131)" accdesc="resstr(12131)" tooltip="true" shortcut="115" layoutpos="none"/>

Guess what? We are only adding an extra string layoutpos="none" at the end of each line.

6. That's it, click on "Compile Script" button and save the file.

7. Now we'll need to replace original authui.dll file present in "C:\Windows\System32\" folder with our new authui.dll file which we saved at Desktop or some other location.

7 a. First take ownership of "C:\Windows\System32\authui.dll" file using following tutorial:

Add Take Ownership Option in File / Folder Context Menu in Windows Vista and 7

7 b. Now rename it to "authui_backup.dll" or any other name.

7 c. Now copy your new modified "authui.dll" file from Desktop to "System32" folder.

PS: If you are using 64-bit Windows edition, you'll also need to replace authui.dll file present in "C:\Windows\sysWOW64\" folder.

8. Restart your system and after restart Windows will start using your new modified file and you'll not see the "Shutdown" button on login screen.

PS: Windows Vista "authui.dll" file contains only a single instance of (ShutDown) string, so you'll need to replace it only once using Step 3 and 4 but Windows 7 contains 3 instances of this string, so you'll need to change all the 3 instances in the file.

NOTE: If you want to use a free tool to customize Windows 7 login screen, check following list:

Ultimate Collection of the Best Free Tools to Customize Windows 7 Login Screen

Also Check:

How to Restrict Windows Users from Accessing Shutdown Options at Login Screen?

Share this article: Facebook | Twitter | Google+ | Reddit | Tell a friend

Posted in: Windows 7, Windows Vista

Other similar articles that may interest you


  • Hi Matt,

    I have been trying to accomplish the same thing with the toggle keyboard. I am new at this. Could you break down what you did?

    Thanks Sean

  • Matt,

    I ended up figuring out myself thru trial and error. Found a line of code which I modified that wiped out all the buttons in one swoop.

    Thanks Sean

  • Do you know how to do this in windows 8? I was able to remove the shut down via registry dword value listed above but it appears all of the above in the authui.dll has changed in windows 8.

  • ok, I would like to do similar task but not hide the red button from the initial startup screen (enterprise edition), but I would like the button only do a restart when pressed and remove the shutdown option or other options from the menu and to move/locate the button to the center of screen.. what code do i change/add for this?

  • thought i should add; for those who don't want to edit the system dll(s) to remove just this one button and have windows 7 professional or above, you can remove the button with group policy:

    Computer Configuration > Windows Settings > Security Settings > Local Policies > select Security Options > find "Shutdown: Allow system to be shut down without having to log on" > Disable

  • also, for those who edits the dll(s) anyway, you should remove the ' shortcut="115" ' part of the string as well or you can still shut down your computer with the hotkey. it might be a matter of personal preference, but with security reasons in mind this would be the way to go.

  • hi vg..can you pls. post some tut about how to hide the taskbar permanently using resource using taskbar eliminator but its not a good one..thank and advance vg. you're no.1

  • VG

    ^^ Taskbar cant be removed using Resource Hacker. You'll need to use 3rd party programs as you mentioned.

Leave a Comment