chicoquente Posted September 22, 2004 Share Posted September 22, 2004 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" /fREG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultPassword" /fREG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\AutoAdminLogon" /fAnd the second one I tried was this:REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon /v DefaultUsername" /fREG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon /v DefaultPassword" /fREG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon /v AutoAdminLogon" /fSo yeah... if anyone could help me with the correct commands I would be forever grateful. Thanks! Link to comment Share on other sites More sharing options...
chicoquente Posted September 22, 2004 Author Share Posted September 22, 2004 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" /fneeded to be:REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUsername /f Link to comment Share on other sites More sharing options...
tguy Posted September 27, 2004 Share Posted September 27, 2004 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now