Solved

PSExec - Disable Auto Logon

Posted on 2013-01-31
5
1,315 Views
Last Modified: 2013-02-06
I need to disable Auto Logon on a user's machine and am doing through PSEXEC.  What is the correct registry path to do this on?  Thanks.
0
Comment
Question by:itsmevic
5 Comments
 
LVL 12

Assisted Solution

by:Sandeep
Sandeep earned 250 total points
ID: 38840833
Have a look at this one.

http://answers.microsoft.com/en-us/windows/forum/windows_7-security/disabling-auto-login-for-windows-7-with-only-1/87e682b2-e038-4f23-927b-58bb9fe6f8ab

You can try using that registry or add that command in a batch file and using PSExec copy over that batch from your PC to remote PC and then execute the same.

PSExec commands are as below

http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
0
 
LVL 6

Expert Comment

by:atsvirginia
ID: 38840843
1. Start > then type netplwiz
2. Select the user account that's logging on automatically and check the “Users must enter a user name and password to use this computer"
3. click on the Apply button
0
 
LVL 12

Expert Comment

by:Sandeep
ID: 38840867
atsvirginia - Its required to change on remote PC not Local PC
0
 
LVL 79

Accepted Solution

by:
David Johnson, CD, MVP earned 250 total points
ID: 38841612
Try this first:
psexec \\computername -u username -p password rundll32 netplwiz.dll,ClearAutoLogon

If this doesn't work then it is set in the registry

psexec \\computername -u username -p password reg delete HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\ -v DefaultPassword
psexec \\computername -u username -p password reg add HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\  /v AutoAdminLogon /t REG_BINARY /d 0 

Open in new window

0
 

Author Closing Comment

by:itsmevic
ID: 38860640
Thank you!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question