Skip to content
David Stein

IT Specialist, hacker and electronic enthusiast

  • Blog
  • My projects
    • FireSmartHeating – intelligent control board for electric floor heating
    • BarcodeBarrier – parking system using barcodes
    • SmartKitchen – TCP/IP kitchen signal device
  • About me – David Stein
  • Search

Force Windows 10 to ask for user name and password

22/03/2021 / IT, Tutorials, Windows / By fires

Sometimes could be handy to force Windows 10 to ask for a username and password. For example, if you try to migrate the user from domain to local account via profwiz. And yes trust my it is not the best idea to try this type of migration.

Ok, let’s say you try migrace from domain to local account. And after restart Windows 10 show you login screen and ask for Windows. But there is problem, the account what Windows 10 try login does not exist anymore.

So you are screw! I told you don’t do it!

Ok, now we need fix it!

  1. boot some live Windows distribution (Gandalf Windows 10 PE, Hiren boot)
  2. open registry editor
  3. mount the remote hive from local disk
Registry PathFile System Path to Registy File
HKEY_LOCAL_MACHINE \SYSTEM%windir%\system32\config\system
HKEY_LOCAL_MACHINE \SOFTWARE%windir%\system32\config\software
HKEY_USERS \Default%windir%\system32\config\default
HKEY_CURRENT_USER%userprofile%\ntuser.dat
Standard registry hives

4. open this key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

5. Modify the 32-bit DWORD value named dontdisplaylastusername and set its value data to 1 as shown below.

Restart! ok now you should be able to specify account at login screen so you can use .\AccountName to use local account.

Buy Me a Coffee

← Previous Post
Next Post →

Categories

  • Army (1)
  • Electronic (6)
    • Reparirs (1)
  • IT (81)
    • Internet (7)
    • Linux (19)
    • Networking (21)
    • Proxmox (3)
    • Security (1)
    • Synology (2)
    • Windows (34)
    • Zabbix (1)
  • My projects (5)
    • BarcodeBarrier (1)
    • FireSmartHeating (1)
    • FireWeatherStation (2)
    • SmartKitchen (1)
  • Programming (14)
    • IoT (8)
  • Reviews (5)
  • Tutorials (32)
  • Uncategorized (3)

My bio

David “fires” Stein

info@davidstein.cz

00 420 774 301 388

About me page

Copyright © 2025 David Stein | Powered by Astra WordPress Theme
Manage Cookie Consent
We use technologies like cookies to store and/or access device information. We do this to improve browsing experience and to show personalized ads. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}