How to reset windows 10 without losing data from D and E drives when windows is corrupted?

How to reset windows 10 without losing data from D and E drives when windows is corrupted??

https://support.microsoft.com/en-us/windows/how-to-refresh-reset-or-restore-your-pc-51391d9a-eb0a-84a7-69e4-c2c1fbceb8dd

I agree with Akito however, should that fail your pretty much left with disconnecting all but your boot drive and reinstalling, then reconnect your other drives (one at a time of course).