2011-3-20:
- Script has been totally rewrited, now supports both attended and unattended mode, a few command line parameters added.
- Resolve the "access denied" issue while Windows Media Player Network Sharing Service was running(in most case).
- Add "/r" switch for renewing owner and security info for files and subdirectories that exist ONLY in new profile location.
2011-3-23: fix a bug that a user can't delete files when using original path instead of actual path. For example, "del c:\users\username\desktop\blah.txt" has the same effect as "del d:\users\username\desktop\blah.txt", "d:\users\username" is your new user profile location.
2011-3-26: remove the external program "sleeper.exe", the sleep function now replaced by a small trick.
2011-8-5: Bug fixed: Windows search under Seven's libraries did not function.
Due to the side effects that using "FolderLocation" setting in answer file causes (described from this KB article
2011-3-16-18-28-11.jpg (71.35K)
Number of downloads: 44
Notes:
2. It currently only supports one-way migration, which means once the original user/public profile(created by system) has been moved to new location, there is no way to move them back.
3. To avoid unexpected problems, this script only supports migrate the following per-user shell folders within user profile: "Desktop", "Documents", "Music", "Pictures", "Videos", "Favorites", "Downloads", "Contacts", "Links", "Saved Game", "Searches", and public shell folders within public profile: "Documents", "Downloads", "Music", "Pictures", "Recorded TV", "Videos", "Favorites", "Libraries"(win7), "Appdata" and other folders are excluded.
4. To preserve backward compatibility of pre-Vista applications, all the original shell folders are now replaced with junction points that point to their new shell folders location. The entire process is seamless, system and applications are not aware of the changes.
5. This script is required to run with administrator privilege.
6. It's highly recommended to make a backup of the entire user profile (and public profile if ) at your first try.
1. It's recommended to build the same directory structure for your new profile as the original user profile, for example, "d:\users\username" for user profile, or "d:\users\public" for public profile, which holds Documents, Favorties, Pictures, Music, Videos etc. folders in it. If "d:\users\username" or "d:\users\public" does not exist , let the script do the rest, it will create the directory structure automatically(later on you can copy your files back in new location mannually).
2. For use on a running operating system, close all running applications(especially real-time protection of anti-virus application) to avoid unexpected "access denied" issues, after script finished, restart the computer to make changes take effect.
3. For use during unattended windows setup, You must invoke the script only from OOBE configuration pass using "Microsoft-Windows-Shell-Setup | FirstLogonCommands | SynchronousCommand" setting, when user acount has already been created and relative profile settings have been applied in place. To ensure the script runs wiith administrator privilege (elevated command), it's recommended to use this utility called "hidden start"
For example: hstart /wait /runas moveshl.cmd /u:"d:\users\username" /p:"d:\users\public" /q
4. For a detailed usage, type moveshl.cmd /help in command prompt window.
PS: parameters are case-insensitive, and the sequence does not matter.
In what circumstance should you use the "/r" parameter:
- You have changed your system, for example, vista to win7, or win7 rtm to win7 sp1, and you intend to migrate user/public profile to a directory that is created by previous system or owned by a user on previous system.
- You intend to migrate user/public profile to a directory that does not belong to currently logged on user.
- You migrate user/public profile to a new location, then you receive "access denied" error when open files within the new location.
However, using the "/r" parameter will increase the time it takes to process, depending on the file size of the target location, so if you are just to re-install the same version of system, and migrate the user/public profile created default by system to a directory owned by the logged on user, you don't need to specify the "/r" parameter.
This post has been edited by Rico.JohnnY: 04 August 2011 - 02:57 PM



Help


Back to top










