The first command ( oobe\msoobe /r ) essentially restarts the OOBE. The additional /o in the second command might be optional depending on your specific needs or version of Windows.
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v SkipMachineOOBE /t REG_DWORD /d 1 /f reset oobe windows 11 cmd
This clears OOBE flags and forces a re-run on reboot. The first command ( oobe\msoobe /r ) essentially
The Out-of-Box Experience (OOBE) in Windows 11 is a setup process that occurs when you first start your computer or after a reset. It guides you through the initial configuration of your system, including setting up your language, region, and user account. However, there may be situations where you need to reset the OOBE process, such as troubleshooting issues or preparing the computer for a new user. The Out-of-Box Experience (OOBE) in Windows 11 is
start ms-settings:reset
Alternatively, you might see or use: