Advertisement
aveyo

user

Feb 21st, 2022
2,055
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.65 KB | None | 1 0
  1. @echo off & title WINDOWS 11 22557+ HOME or PRO setup account without internet connection
  2. :: when the setup halts at OOBE, run via Shift + F10 > D:\user
  3. :: replace D with the media drive letter, or just try E:\user F:\user until you get at it
  4.  
  5. set /p "name=Enter your account name: "
  6. net user "%name%" /add
  7. net localgroup Administrators "%name%" /add
  8. reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /va /f
  9. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoLogonSID
  10. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName  
  11. net user defaultuser0 /delete
  12. shutdown /l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement