So today I was doing a system reset on a Windows 10 virtual machine. I got the option to either keep my own files or delete everything. This made me wonder the following: How does Windows know which files are for Windows itself and what to delete? I was thinking of the following:
- Each "Windows file" has a property that tells the OS during reset to not delete that file
- Windows has a copy of an original Windows version which replaces the old files
I don't know if either one of these two options is right, but the first doesn't seem reasonable to me for some reason, and the second option would mean that the size of Windows is always the size of at least two Windows OS's . How does this work?
c:\Users\%YOUR PROFILENAME%and uninstalls every program and settings and registry keys (that was not in clean installation by default)... however, I believe it keeps a copy of removed %AppData% folder and user registry hive (old user profile as a hole) inC:\Windows.OLD. The second option, I'm not sure it does the same! it either asks for an installation media to replace all the windows and user files with the one you provide, or, skips prompt if a windows image specified byreagentc /setosimagecommand. – NetwOrchestration Dec 15 '16 at 11:08