Use the “Export/Import Settings” for exporting the settings before reinstall the 3ds Max or Windows.
Or for transferring the settings to another computer.

https://youtu.be/ZfxNnBef__Q

By default the settings are placed in this directory:
%USERPROFILE%\AppData\Local\Autodesk\3dsMax\20XX – 64bit\ENU\scripts\TrackScripts\ProjectManager\Settings\

Applicable to: