[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1464
  • Last Modified:

How to robocopy Citrix Profile data from one location to another?

Hello there,

We have base of 500 users using Citrix Full Desktop , we are in the process of migrating users from old Citrix Farm (XA 4.5) to new Citrix farm (XA 6.5).
I need to copy My documents, Desktop, Favourites from old location \\xxxxxfps1\Profiles$\%username% to new location \\xxxxxfps1\CTXProfiles$\%username% (fps1 server is a W2K3 server)
I will be moving users on region based and have respective AD Security groups.
The first thing I need to do is to extract usernames from this security group and store it in a text file and then run robocopy script. Also I need to then delete the terminal Services Profile path in user's AD profile.
Please assist.
Thanks and Regards
0
goprasad
Asked:
goprasad
  • 3
  • 2
1 Solution
 
Malli BoppeCommented:
You can use comamnd net group groupname on the domain controller to get the group names.

To copy the profiles user shouldn't be accessing the profile becuase robocopy can't copy the files which are open.You can restart the source server just before the copy process to disconnect/close open files.

robocopy \\xxxxxfps1\Profiles$\%username% \\xxxxxfps1\CTXProfiles$\%
username% /e /r:1 /W:1 /V  /COPYALL /Log:c:\logs\%username%.txt

You can use 3rdparty free tool called Admodify to change the TS profiles
0
 
goprasadAuthor Commented:
Thanks very much for your solution. For example there is a security group in ad called crregionusers with 50 users in this group, how can I extract usernames from this group?
Please advise.
0
 
Malli BoppeCommented:
you  need to logon the domain controller and run the below command

net group crregionusers > c:\cr.txt
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
goprasadAuthor Commented:
That's great, thanks again very very much for the command. And it is recommended that you exclude lnk file extension (shortcuts) when you copy Desktop, what do you suggest? If so what is the command to exclude shortcut extension.
0
 
Malli BoppeCommented:
Try this command

robocopy \\xxxxxfps1\Profiles$\%username% \\xxxxxfps1\CTXProfiles$\%
username% /e /r:1 /W:1 /V  /COPYALL /XF "*.ink" /Log:c:\logs\%username%.txt
0
 
barrykflCommented:
You can simply config always syn to copy profiles to another location , this freeware is trustable.

http://allwaysync.com/
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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