Computers are plagued with endless troubles - installing strange programs, making command mistakes, messing things up after editing the registry, etc.
If you create a backup point before work, you can easily restore to that state. Introduces how to restore Windows 10 to a previous backup and completely return to that state.
Run rundll32.exe Shell32.dll,Control_RunDLL Sysdm.cpl,,4 in command prompt to open the System Protection window.

Select the drive you want to backup, which will basically be the C drive, and click “Configure”.
The rest is straightforward.
Reference:
How to Use System Restore in Windows 7, 8, and 10
There are detailed images there, so you should be able to figure it out by looking at it.