A new way to create a local user account - better than oobe\bypassnro


These are options from the Unattended file. Might as well just copy a template file to your USB.

Oh wait, Rufus can do that...
Code:
        <settings pass="oobeSystem">
me="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                        <OOBE>
                                <HideEULAPage>true</HideEULAPage>
                                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                                <NetworkLocation>Work</NetworkLocation>
                                <ProtectYourPC>3</ProtectYourPC>
                        </OOBE>
                        <UserAccounts>
                                <LocalAccounts>
                                        <LocalAccount wcm:action="add">
                                                <Group>Administrators</Group>
                                                <Name>GARLIN</Name>
                                                <Password>
                                                        <PlainText>true</PlainText>
                                                        <Value></Value>
                                                </Password>
                                        </LocalAccount>
                                </LocalAccounts>
                        </UserAccounts>
                </component>
        </settings
 
Last edited:

My Computer

System One

  • OS
    Windows 7
Actually, I just realised the method in this thread (start ms-cxh:localonly) is essentially the same method as in


The command used there is a bit more complicated and is case sensitive:-

WinJS.Application.restart("ms-cxh://LOCALONLY")

I always found above to be a bit cumbersome, so I pasted it in a text file to avoid case sensitive typing errors.

start ms-cxh:localonly is much easier to type apart from minor detail, my brain always wants me to type xch rather than cxh LOL.

Again, I have pasted it into a text file to cut and paste easily into command prompt.

Note: when the local account screen pops up, I just click on password box and repeat password box without entering any text (i.e. no password).
This also saves a bit of initial setup time as you do not have to enter the slightly tedious three security answers. Of course, you can add password once setup.
 

My Computer

System One

  • OS
    Windows 11 Pro + Win11 Canary VM.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Zenbook 14
    CPU
    I9 13th gen i9-13900H 2.60 GHZ
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB soldered
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    laptop OLED screen
    Screen Resolution
    2880x1800 touchscreen
    Hard Drives
    1 TB NVME SSD (only weakness is only one slot)
    PSU
    Internal + 65W thunderbolt USB4 charger
    Case
    Yep, got one
    Cooling
    Stella Artois (UK pint cans - 568 ml) - extra cost.
    Keyboard
    Built in UK keybd
    Mouse
    Bluetooth , wireless dongled, wired
    Internet Speed
    900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

    Macrium Reflect Home V8
    Office 365 Family (6 users each 1TB onedrive space)
    Hyper-V (a vm runs almost as fast as my older laptop)
So @garlin, are you saying that at command prompt during install we should be entering
start ms-cxh://setaddlocalonly instead of start ms-cxh:localonly
OR are you saying we just enter ms-cxh://setaddlocalonly
with or without the "start" in front of it"????

You know how all this Greek scripting and command line stuff you, @pseymour and @hsehestedt spout out confuses this old woman. I do good to speak English.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3194
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Windows has a hidden list of resource handlers, basically shortcuts to access a built-in feature.

Create Shortcuts to Open Pages in Settings in Windows 11
List of URI Commands to Open Microsoft Store Apps in Windows 11

If you're in CMD, "start [handler]" asks Explorer to find the resource handler and launch it for us. When you type a Run Command (WIN + R), that's Explorer opening the same command. CMD always requires the start in front, but Explorer doesn't require it.

start ms-screensketch
start http://elevenforums.com


OOBE registers a set of cxh ("Connected Experience Handlers"), which are shortcuts to different OOBE screens. Why do they exist? Most retail users only see a small part of the entire OOBE experience, the other two-thirds is written for corporate clients running Autopilot to set up Windows PC's. IT admins may need to restart part of a failed Autopilot sequence.

ms-cxh://localonly is the W10 script, it has the W10 dark theme
ms-cxh://setaddlocalonly is the W11 script, it has the W11 light theme

Basically the same function, but updated for W11.

Also, all ms-cxh handlers are live on your Windows system. If you wanted to create a new user, without using the Settings app, run start ms-cxh://localonly. The only problem is it's designed to run from OOBE, and doesn't know how to exit when finished. You have to kill the window yourself.
 
Last edited:

My Computer

System One

  • OS
    Windows 7
I always do it on the first OOBE screen. At least for oobe\bypassnro, those screens will be presented again anyway after the reboot so I see no point in going through those screens more than once, but with start ms-cxh:localonly this is not the case. It skips all the screens after you enter the command (which I like!).
Mine still went through some privacy screens
Windows has a hidden list of resource handlers, basically shortcuts to access a built-in feature.

Create Shortcuts to Open Pages in Settings in Windows 11
List of URI Commands to Open Microsoft Store Apps in Windows 11

If you're in CMD, "start [handler]" asks Explorer to find the resource handler and launch it for us. When you type a Run Command (WIN + R), that's Explorer opening the same command. CMD always requires the start in front, but Explorer doesn't require it.

start ms-screensketch
start http://elevenforums.com


OOBE registers a set of cxh ("Connected Experience Handlers"), which are shortcuts to different OOBE screens. Why do they exist? Most retail users only see a small part of the entire OOBE experience, the other two-thirds is written for corporate clients running Autopilot to set up Windows PC's. IT admins may need to restart part of a failed Autopilot sequence.

ms-cxh://localonly is the W10 script, it has the W10 dark theme
ms-cxh://setaddlocalonly is the W11 script, it has the W11 light theme

Basically the same function, but updated for W11.

Also, all ms-cxh handlers are live on your Windows system. If you wanted to create a new user, without using the Settings app, run start ms-cxh://localonly. The only problem is it's designed to run from OOBE, and doesn't know how to exit when finished. You have to kill the window yourself.
Not sure I can see point of using w11 version as more to remember, and whether to us pesky forward or back slashes to remember.

Personally, I don't give a rat's posterior about like or dark theme at this point of oobe.
 

My Computer

System One

  • OS
    Windows 11 Pro + Win11 Canary VM.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Zenbook 14
    CPU
    I9 13th gen i9-13900H 2.60 GHZ
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB soldered
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    laptop OLED screen
    Screen Resolution
    2880x1800 touchscreen
    Hard Drives
    1 TB NVME SSD (only weakness is only one slot)
    PSU
    Internal + 65W thunderbolt USB4 charger
    Case
    Yep, got one
    Cooling
    Stella Artois (UK pint cans - 568 ml) - extra cost.
    Keyboard
    Built in UK keybd
    Mouse
    Bluetooth , wireless dongled, wired
    Internet Speed
    900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

    Macrium Reflect Home V8
    Office 365 Family (6 users each 1TB onedrive space)
    Hyper-V (a vm runs almost as fast as my older laptop)
Hi!
I rebuild my windows ISO with this lines in registry on boot.wim and install.wim and it will show " I don't have internet connection" option and like that i can create a local account.

HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE BypassNRO dword 1
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch Enabled dword 1

It worked for me...
 

Attachments

  • screen.webp
    screen.webp
    753.2 KB · Views: 1

My Computer

System One

  • OS
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    Acer
    CPU
    13th Gen Intel(R) Core(TM) i7-1355U 1.70 GHz
    Memory
    16GB
Not sure I can see point of using w11 version as more to remember, and whether to us pesky forward or back slashes to remember.
The backslash thing is easy to remember. For paths on disk, registry, etc. it is always a backslash. For any parameters it is always forward slash.

I've also seen people confused by which is which. A backslash has the top of slash facing backwards while a forward slash has the top facing forward. Easy :cool:
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self-built
    CPU
    Intel i7 11700K
    Motherboard
    ASUS Prime Z590-A MB
    Memory
    64GB (Waiting for warranty replacement of another 64GB for 128GB total)
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe SSD
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    3 x 512GB 2.5" SSD
    1 x 4TB 2.5" SSD
    5 x 8TB Seagate Barracuda HDD
    PSU
    Corsair HX850i
    Case
    Corsair iCUE RGB 5000X mid tower case
    Cooling
    Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Home Computer Specifications, Configuration, and Usage Notes General Specifications ASUS Prime Z590-A motherboard, serial number M1M0KC222467ARP Intel Core i7-11700K CPU (11th Gen Rocket Lake / LGA 1200 Socket) 128GB Crucial Ballistix RGB DDR4 3200 MHz DRAM (4 x 32GB) Corsair iCUE RGB 5000X mid tower case Noctua NH-D15 chromax.black CPU cooler Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Corsair LL-120 RGB Fans (Qty. 3)
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    The five 8TB drives and three 512GB SSDs are part of a DrivePool using StableBit DrivePool software. The three SSDs are devoted purely to caching for the 8TB drives. All of the important data is stored in triplicate so that I can withstand simultaneous failure of 2 disks.

    Networking: 2.5Gbps Ethernet and WiFi 6e
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
I rebuild my windows ISO with this lines in registry on boot.wim and install.wim and it will show " I don't have internet connection" option and like that i can create a local account.
That is one way to do it, but it's my personal favorite way to go about it. the problem with that method is that anytime you download a new ISO image, for example, a newer build, you have modify the ISO again. Also, what if you want to keep an original unmodified ISO? Now you have to keep 2 separate ISO images. Yuck!

Of course that may be fine for some people, but my preference is to use a simple answer file to create the local account. This way I need to make zero changes to the original ISO image which saves a lot of time and effort. Also, I can recycle the same answer file for any and all Windows ISO images I may download in the future so it takes zero effort for those new ISO images.

Again, that is merely my personal preference. Just noting it as a possible alternative.
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self-built
    CPU
    Intel i7 11700K
    Motherboard
    ASUS Prime Z590-A MB
    Memory
    64GB (Waiting for warranty replacement of another 64GB for 128GB total)
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe SSD
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    3 x 512GB 2.5" SSD
    1 x 4TB 2.5" SSD
    5 x 8TB Seagate Barracuda HDD
    PSU
    Corsair HX850i
    Case
    Corsair iCUE RGB 5000X mid tower case
    Cooling
    Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Home Computer Specifications, Configuration, and Usage Notes General Specifications ASUS Prime Z590-A motherboard, serial number M1M0KC222467ARP Intel Core i7-11700K CPU (11th Gen Rocket Lake / LGA 1200 Socket) 128GB Crucial Ballistix RGB DDR4 3200 MHz DRAM (4 x 32GB) Corsair iCUE RGB 5000X mid tower case Noctua NH-D15 chromax.black CPU cooler Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Corsair LL-120 RGB Fans (Qty. 3)
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    The five 8TB drives and three 512GB SSDs are part of a DrivePool using StableBit DrivePool software. The three SSDs are devoted purely to caching for the 8TB drives. All of the important data is stored in triplicate so that I can withstand simultaneous failure of 2 disks.

    Networking: 2.5Gbps Ethernet and WiFi 6e
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor

Latest Support Threads

Back
Top Bottom