Research on how to move Windows user folders

Source: Internet
Author: User
Tags robocopy

This approach may cause Windows upgrade to fail. Please use it carefully.

Windows 8.1 is valid for use. Other systems should be modified as appropriate.

——————————————————————————

Copy the contents of the file (with permission and other information): Some of the statements are directly under the PE copy. Some use the xcopy. Sometimes, however, these methods do not work well with symbolic links. I used the Robocopyto refer to another statement.

Advanced boot Mode--command prompt:

Robocopy C:\Users d:\users/e/COPYALL/XJ

Parameter description:

/e indicates that the file is copied with subdirectories (including empty directories)
/copyall means copying all file information
/xj means not including Junction points (included by default)

ren C:\Users C:\Users.bak ( You can also delete the original folder )

Mklink/d C:\Users D:\Users (some use junction and are said to succeed.) )

To ensure backward compatibility of the software, rebuild some symbolic links, directory joins (Junction) that existed before replication. These links are skipped by Robocopy's/XJ parameter at the time of copying.

You can save the batch file in advance and execute it.

YourUserName Replace with your user folder name

Batch file code:

mklink/d "D:\Users\All Users" C:\ProgramData
mklink/j "D:\Users\Default User" D:\Default

mklink/j "D:\Users\Default\Application Data" d:\users\default\appdata\roamingmklink/j d:\Users\Default\Cookies d:\ users\default\appdata\local\microsoft\windows\inetcookiesmklink/j "D:\Users\Default\Local Settings" d:\Users\ default\appdata\localmklink/j "D:\Users\Default\My Documents" d:\users\default\documentsmklink/j d:\Users\Default\ NetHood "D:\Users\Default\AppData\Local\Microsoft\Windows\Network shortcuts" mklink/j D:\Users\Default\PrintHood "D : \users\default\appdata\local\microsoft\windows\printer Shortcuts "mklink/j d:\Users\Default\Recent d:\Users\ default\appdata\local\microsoft\windows\recentmklink/j D:\Users\Default\SendTo d:\Users\Default\AppData\Local\ microsoft\windows\sendtomklink/j d:\Users\Default\Templates d:\Users\Default\AppData\Local\Microsoft\Windows\ templatesmklink/j d:\users\default\"Start" menu "D:\Users\Default\AppData\Local\Microsoft\Windows\Start" mklink/j "D : \users\yourusername\application Data "d:\users\yourusername\appdata\roamingmklink/j D:\Users\YOUrusername\cookies d:\users\yourusername\appdata\local\microsoft\windows\inetcookiesmklink/j "d:\Users\ Yourusername\local Settings "d:\users\yourusername\appdata\localmklink/j" D:\Users\YOURUSERNAME\My Documents "d:\ users\yourusername\documentsmklink/j D:\Users\YOURUSERNAME\NetHood "d:\Users\YOURUSERNAME\AppData\Local\ Microsoft\windows\network shortcuts "mklink/j d:\Users\YOURUSERNAME\PrintHood" d:\Users\YOURUSERNAME\AppData\Local \microsoft\windows\printer shortcuts "mklink/j d:\Users\YOURUSERNAME\Recent d:\Users\YOURUSERNAME\AppData\Local\ microsoft\windows\recentmklink/j D:\Users\YOURUSERNAME\SendTo d:\Users\YOURUSERNAME\AppData\Local\Microsoft\ windows\sendtomklink/j d:\Users\YOURUSERNAME\Templates d:\Users\YOURUSERNAME\AppData\Local\Microsoft\Windows\ templatesmklink/j d:\users\yourusername\"Start Menu" D:\Users\YOURUSERNAME\AppData\Local\Microsoft\Windows\Start "

Pause

Research on how to move Windows user folders

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.