chicoquente Posted September 22, 2004 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!
chicoquente Posted September 22, 2004 Author 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
tguy Posted September 27, 2004 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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now