How to reset Windows 10 via command line?
If your PC is slow, buggy, or you just want to sell it, you’ll want to reset it to factory settings.
one. Run command prompt.
2. Enter: systemreset --factoryreset
3. Select the desired reset mode.4. Then, choose whether to uninstall the drivers.5. Press “Reset”.
After these actions, the OS will be reset to the factory state and you will be taken to the initial system setup window.
You can also reset the PC through the system settings, as described in