Solved

Robocopy fails when copying desktop.ini files. Server 2003 to 2008 R2

Posted on 2013-02-07
7
1,763 Views
Last Modified: 2013-03-03
I am building a new Citrix farm (XA65). We are currently running XA5.
The current farm is running on Server 2003 32 bit (including the profile/home folder server).
The new farm is running Server 2008 R2.

I have attempted to replicate all Profile and Home folders of all of the users via a Robocopy script, however it keeps failing when attempting to copy any Desktop.ini file.

I have 2 questions:
1. Is using Robocopy acceptable to replicate this data?
2. If so, how do I get around the issue of the Desktop.ini files halting the robocopy?
0
Comment
Question by:Howzatt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 17

Assisted Solution

by:pjam
pjam earned 100 total points
ID: 38864014
Any kind of error in Robocopy seems to be a problem.  I am sure there is some kind of setting to fix that issue, but I usually just switch to GoodSync, Allwaysync or Beyond Compare, the last being my prefrence.  Give it a try at Scootersoftware.com
0
 
LVL 23

Assisted Solution

by:Thomas Grassi
Thomas Grassi earned 100 total points
ID: 38864017
0
 

Author Comment

by:Howzatt
ID: 38864094
I am also finding that quite a few folders do not have the appropriate permissions for the Administrator to copy from server to Server. I assume that the root of the home folder was set with the incorrect permissions initially.

Is there anyway around this without having to reapply permissions from the root down?
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 26

Assisted Solution

by:Tony Johncock
Tony Johncock earned 200 total points
ID: 38864101
Whilst Robocopy can do what you want, this may well be a good opportunity to create new profiles (which they'll get anyway - with the .V2 extension).

When I do an upgrade I much prefer to provide a clean new profile and grant access to the parts of the old one users may need. I then combine that with redirected folders etc to keep the actual profiles clean.

I think the switch you require (from robocopy /?) is:

::
:: Retry Options :
::
               /R:n :: number of Retries on failed copies: default 1 million.
               /W:n :: Wait time between retries: default is 30 seconds.

Lower the retries and lower the time between retries.
0
 
LVL 26

Assisted Solution

by:Tony Johncock
Tony Johncock earned 200 total points
ID: 38864104
It can be quite normal for adminstrators to have no access to profile shares. Indeed, it can be set by group policy.
0
 

Author Comment

by:Howzatt
ID: 38864299
Its the home folders which are prompting the permission errors.

Re profiles, I agree that I should just create new ones when users 1st log into the new XA farm. I assume that because the current profiles are based on Server 2003, they probably cause issues on Server 2008 R2?
0
 
LVL 25

Accepted Solution

by:
Coralon earned 100 total points
ID: 38870381
First things first :-)

You do not have a choice about them creating new profiles.  The Win2k8r2 profiles are 64bit v2 style profiles, and the Win2k3 profiles are probably 32bit, and definitely v1 style profiles.  Win2k8R2 will simply not load them.

As for robocopy, do you want to carry the desktop.ini files or skip them?

If you want to skip them, you can use a /xf desktop.ini to exclude them in your robocopy.  You will definitely want to use the /r and /w switches as Tony1044 mentioned.. that 1million retries is a nightmare ;-)

Just in case, the desktop.ini files tell windows explorer what the folder title and icon should be.  For me, I consider them useless, so I typically just go through the directories, and delete them all.  (subinacl can be your friend :-)

Coralon
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question