Solved

PSExec - Disable Auto Logon

Posted on 2013-01-31
5
1,330 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 80

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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).
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
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…

821 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