• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3384
  • Last Modified:

Preserving 'My Documents' redirection using USMT

I am using the User State Migration Tool to aid with PC upgrades. My users are going from Win Xp Pro sp/2 to the same OS on a newer system.
 The tool works well, but it is not preserving the 'My Documents' redirection.
 On the source PC, we have the user's 'My Documents' folder path set to their network home directory so anything they generate is saved where we can back it up. After I run the USMT on the target PC, the 'My Documents' path is back to the default location on the hard drive.
 I found a way to preserve this using GP, but our LAN Admin is a panzy and won't make any GP changes I ask for. So I need to find a command I can include in one of the .inf files used by the USMT.
 I have little scripting experience and editing these .inf files flirts with the fringe of my ability. If anyone has any idea how I can perform this migration trick, please spell it out for me.

Thanks!
0
swpa_wnt
Asked:
swpa_wnt
  • 4
  • 2
1 Solution
 
and235100Commented:
Apparently - USMT should do this properly - according to http://technet.microsoft.com/en-us/windowsvista/aa905115.aspx

Surely - after the usmt "restore" - after a reboot - the GPO changes to do with folder redirection should pick-up - and the user(s) should have access to the proper path once more...

USMT doesn't need to back these up - and if group policy was applying properly - then the folder redirection should remain unaffected.
0
 
swpa_wntAuthor Commented:
Nope, USMT does not restore the 'My Documents' redirection.

 I cannot use GP because it is controlled by our LAN Admin and he won't do it because 'it might screw up our laptop users'. It is reasonable to think one of the USMT .inf transfer guides can be edited to move over the My Documents redirection. I cannot find that setting int he registry though, so I need help finding out where that setting resides.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
swpa_wntAuthor Commented:
Ok, that helped A LOT. I'm almost there. That registry entry is the one that controls the redirection.

But...I'm just not good enough with scripting to get it to work. If anyone can hold my hand through this, I'd really apprciate it.
 
 In my 'miguser.inf' I have, among other commands, these two:

[Copy This State]
AddReg=Windows AddReg
[Windows AddReg]
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\*=

[Copy This State]
Addreg=User Shell Folders Addreg
[User Shell Folders]
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\*=


 The top entry copies the default printer setting over so the Target PC does not revert back to the freaking Fax printer. I include it because it succeeds.

 The bottom entry is what should copy the 'My Documents' redirection over to the target.

 But when I run the 'Scanstate', it now fails with this error:

 Info       Command line used: scanstate /user:domain\my.username /i
              sysfiles.inf /i miguser.inf /i migsys.inf /o c:\temp\

Error         Empty or missing section [User Shell Folders Addreg] in the INF
              file. [ERROR=3758096642 (E0000102h)]

Error         Line: Addreg = User Shell Folders Addreg
Fatal Error   Failing because of processing error in [Administrator Scripts]
              [ERROR=1223 (4C7h)]

Error         Failed in SCRIPT during computation of the processing queue
              [ERROR=1223 (4C7h)]

 Can someone post the .inf command to copy over the registry settings located at
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]

 Thanks!
0
 
and235100Commented:
You might have it right - but the reason why the first one works is that you have

"AddReg=Windows AddReg"
"[Windows AddReg]

In the second:

Addreg=User Shell Folders Addreg
[User Shell Folders]

You need [User Shell Folders AddReg]... surely?
0
 
and235100Commented:
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now