Jump to content

Recommended Posts

Posted

Hey again.

So I want to make a batch file that will delete the following registry entries for me to disable auto login... but I am getting stumped. I used the programs /? command but it still did not help me out. I am doing something wrong, but not sure what.

The keys to delete are here:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Hades"
"DefaultPassword"="*****"
"AutoAdminLogon"="1"

And here are the two different batch files I have tried to use... neither of them working.. I realize I am probably overlooking something entirely.. but I am new to doing reg work with command prompt and so I do not quite understand it all that well.

REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUsername" /f
REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultPassword" /f
REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\AutoAdminLogon" /f

And the second one I tried was this:

REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon /v DefaultUsername" /f
REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon /v DefaultPassword" /f
REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon /v AutoAdminLogon" /f

So yeah... if anyone could help me with the correct commands I would be forever grateful. Thanks!


Posted

Aha... I got it!

Turns out I needed to move around the quotation marks.

REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon /v DefaultUsername" /f

needed to be:

REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUsername /f

Posted

Try REG DEL instead of REG DELETE.

Or you can try using regedit and a minus sign to delete the key..

For instance:

Windows Registry Editor Version 5.00

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Runonce]

"^SetupICWDesktop"=-

This works for me.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...