{"id":2636,"date":"2024-02-03T15:02:49","date_gmt":"2024-02-03T23:02:49","guid":{"rendered":"https:\/\/systemsolver.com\/StatlerBlog\/?p=2636"},"modified":"2024-02-03T15:02:49","modified_gmt":"2024-02-03T23:02:49","slug":"windows-10-11-user-settings-backup-and-restore","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2024\/02\/03\/windows-10-11-user-settings-backup-and-restore\/","title":{"rendered":"Windows 10 11 User settings backup and restore"},"content":{"rendered":"<h3>Pre work<\/h3>\n<p>If the user folders are linked to OneDrive there may be a difference in how user folders are addressed in a command prompt or powershell. I haven&#8217;t had a chance to test it.<\/p>\n<p style=\"padding-left: 40px;\">If you go into explorer and right click the Documents folder that looks like it&#8217;s under &#8220;This PC&#8221; and select properties, the window that pops up will give the directory of the folder.<\/p>\n<p style=\"padding-left: 40px;\">To find the true location of the user&#8217;s folders open regedit and go to:<\/p>\n<p style=\"padding-left: 40px;\"><code>Computer\\HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders<\/code><\/p>\n<p style=\"padding-left: 40px;\">There you will see a list that includes the true path of user&#8217;s folders.<\/p>\n<p>To include the whole source folder in the destination you must include the source folder&#8217;s name in the destination. You must also, for some stupid reason, include a space after the source and destination names.<\/p>\n<p>Following is an example of a batch file, or command lines<\/p>\n<h3>Backup<\/h3>\n<pre>echo.\necho.\necho Be sure you have the correct source directory paths!\necho Right click on file explorer and select properties for each user folder\necho.\necho.\npause\n\necho off\nset month=%DATE:~4,2%\nset day=%DATE:~7,2%\nset month=%DATE:~,2%\nset day=%DATE:~3,2%\nset year=%DATE:~-2%\nset hour=%time:~0,2%\nset min=%time:~3,2%\nset sec=%time:~6,2%\nset milsec=%time:~9,2%\necho on\nset FolderDateTime=%month%%day%%year%-%hour%%min%%sec%\nset BackupDestination=Z:\\UserBackup\\%computername%\\%username%\\%FolderDateTime%\n\nset src1=Documents\nset src2=Pictures\nset src3=Downloads\nset src4=Desktop\nset src5=Music\nset src6=Videos\n\nrobocopy \"%homedrive%%homepath%\\src1 \" \"%BackupDestination%\\src1 \" \/MIR \/COPY:DAT \/DCOPY:T\nrobocopy \"%homedrive%%homepath%\\src2 \" \"%BackupDestination%\\src2 \" \/MIR \/COPY:DAT \/DCOPY:T\nrobocopy \"%homedrive%%homepath%\\src3 \" \"%BackupDestination%\\src3 \" \/MIR \/COPY:DAT \/DCOPY:T\nrobocopy \"%homedrive%%homepath%\\src4 \" \"%BackupDestination%\\src4 \" \/MIR \/COPY:DAT \/DCOPY:T\nrobocopy \"%homedrive%%homepath%\\src5 \" \"%BackupDestination%\\src5 \" \/MIR \/COPY:DAT \/DCOPY:T\nrobocopy \"%homedrive%%homepath%\\src6 \" \"%BackupDestination%\\src6 \" \/MIR \/COPY:DAT \/DCOPY:T\n\necho.\necho.\necho Copy has completed\necho To open the destination directory continue \necho.\necho.\npause\nstart %homedrive%%homepath%\npause<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pre work If the user folders are linked to OneDrive there may be a difference in how user folders are addressed in a command prompt or powershell. I haven&#8217;t had a chance to test it. If you go into explorer and right click the Documents folder that looks like it&#8217;s under &#8220;This PC&#8221; and select [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2636","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/2636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/comments?post=2636"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/2636\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=2636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=2636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=2636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}