Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

REG DELETE command... help needed.

Featured Replies

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!

  • Author

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

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.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.