You will need to update the CompanyName to yours
[pastacode lang=”markdown” manual=”%23Change%20AutoSaveLocation%20to%20OneDrive%0A%0A%0A%0A%24onedrivelocation%20%3D%20%25userprofile%25%5COneDrive%20-%20**CompanyName**%5C%0A%0A%0A%0Amkdir%20%22%24onedrivelocation%5CAutorecover%5CWord%5C%22%0A%0ANew-ItemProperty%20-path%20%22HKCU%3A%5CSoftware%5CMicrosoft%5COffice%5C16.0%5CWord%5COptions%22%20-Name%20AUTOSAVE-PATH%20-PropertyType%20%22ExpandString%22%20-Value%20%22%24onedrivelocation%5CAutorecover%5CWord%5C%22%0A%0Amkdir%20%22%24onedrivelocation%5CAutorecover%5CExcel%5C%22%0A%0ANew-ItemProperty%20-path%20%22HKCU%3A%5CSoftware%5CMicrosoft%5COffice%5C16.0%5Cexcel%5COptions%22%20-Name%20AutoRecoverPath%20-PropertyType%20%22ExpandString%22%20-Value%20%22%24onedrivelocation%5CAutorecover%5CExcel%5C%22%0A%0Amkdir%20%22%24onedrivelocation%5CAutorecover%5CPowerpoint%5C%22%0A%0ANew-ItemProperty%20-path%20%22HKCU%3A%5CSoftware%5CMicrosoft%5COffice%5C16.0%5CPowerPoint%5COptions%22%20-Name%20PathToAutoRecoveryInfo%20-PropertyType%20%22ExpandString%22%20-Value%20%22%24onedrivelocation%5CAutorecover%5CPowerpoint%5C%22″ message=”” highlight=”” provider=”manual”/]