{"id":4101,"date":"2019-05-08T00:41:19","date_gmt":"2019-05-08T00:41:19","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=4101"},"modified":"2023-10-01T22:06:47","modified_gmt":"2023-10-01T22:06:47","slug":"poweshell-script-for-intune-to-change-office-work-excel-and-powerpoint-autorecover-location-to-onedrive","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/fixes\/poweshell-script-for-intune-to-change-office-work-excel-and-powerpoint-autorecover-location-to-onedrive","title":{"rendered":"Poweshell Script for Intune to Change Office Work\/Excel and Powerpoint Autorecover location to OneDrive"},"content":{"rendered":"\n<p>You will need to update the CompanyName to yours<\/p>\n\n\n<div class=\"wp-block-wab-pastacode\">\n\t<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">#Change AutoSaveLocation to OneDrive<br\/><br\/><br\/><br\/>$onedrivelocation = %userprofile%\\OneDrive - **CompanyName**\\<br\/><br\/><br\/><br\/>mkdir &quot;$onedrivelocation\\Autorecover\\Word\\&quot;<br\/><br\/>New-ItemProperty -path &quot;HKCU:\\Software\\Microsoft\\Office\\16.0\\Word\\Options&quot; -Name AUTOSAVE-PATH -PropertyType &quot;ExpandString&quot; -Value &quot;$onedrivelocation\\Autorecover\\Word\\&quot;<br\/><br\/>mkdir &quot;$onedrivelocation\\Autorecover\\Excel\\&quot;<br\/><br\/>New-ItemProperty -path &quot;HKCU:\\Software\\Microsoft\\Office\\16.0\\excel\\Options&quot; -Name AutoRecoverPath -PropertyType &quot;ExpandString&quot; -Value &quot;$onedrivelocation\\Autorecover\\Excel\\&quot;<br\/><br\/>mkdir &quot;$onedrivelocation\\Autorecover\\Powerpoint\\&quot;<br\/><br\/>New-ItemProperty -path &quot;HKCU:\\Software\\Microsoft\\Office\\16.0\\PowerPoint\\Options&quot; -Name PathToAutoRecoveryInfo -PropertyType &quot;ExpandString&quot; -Value &quot;$onedrivelocation\\Autorecover\\Powerpoint\\&quot;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You will need to update the CompanyName to yours<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,2836],"tags":[2958,2959,2960,2837,576],"class_list":["post-4101","post","type-post","status-publish","format-standard","hentry","category-fixes","category-intune","tag-autorecover","tag-autosave","tag-change-location","tag-intune","tag-powershell"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=4101"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4101\/revisions"}],"predecessor-version":[{"id":7342,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4101\/revisions\/7342"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=4101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=4101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=4101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}