VMware Horizon Community
lansti
Hot Shot
Hot Shot
Jump to solution

Move user profiles from a server to two new servers.

I need to move UEM userprofiles from one server to two new ones.

Our users are located in two different OU, depending which town users are located in.

The UEMserver are loacted in town A.

We see that logon and logoff time for users in town B, are longer because the copying UEM profile takes longer time.

So i have tried to robocopy evenry profile from town B to the new server, but the ownership of the files and folder changes from the user to administrator, and then users get an access denied to the files.

So, what is the best pratice to move these files from one server to antoher?

i can change the GPO policy for the users, but then again everyone will start with a emtpy profile, and need to configure thier applications and how they like it to behave all over again.

I was thinking of a logonsctipt, where the users will copy their files, and let the script run for a couple of weeks. And then change the GPO to point on the new server. Not sure if that is the best way, and hope one of you guys have done this.

BR.

Best regards
Lansti
1 Solution

Accepted Solutions
ijdemes
Expert
Expert
Jump to solution

Just did a quick check and used the following command successfully:

robocopy /MIR /COPYALL "C:\Shares\UEM_Profiles" "C:\Robocopy-Test\UEM_Profiles"

pastedImage_1.png


\\ Ivan
---
Twitter: @ivandemes
Blog: https://www.ivandemes.com

View solution in original post

Reply
0 Kudos
7 Replies
ijdemes
Expert
Expert
Jump to solution

Hi lansti​,

Did you try the /SEC switch with robocopy?


\\ Ivan
---
Twitter: @ivandemes
Blog: https://www.ivandemes.com
lansti
Hot Shot
Hot Shot
Jump to solution

Yes, and permissions will follow but not ownership...

for /f "delims=" %%i in (userlist.txt) do robocopy "%directory%\%src%" "%dest%\%src%" /E /SEC /COPYALL /XD "%directory%\%src%\Backups" "%directory%\%src%\Logs"

Best regards
Lansti
Reply
0 Kudos
ijdemes
Expert
Expert
Jump to solution

I believe I dealt with this before and succeeded with robocopy, but can't exactly remember the used robocopy switches. Did you try with /B (I believe I used this "Backup Mode" switch)?


\\ Ivan
---
Twitter: @ivandemes
Blog: https://www.ivandemes.com
Reply
0 Kudos
ijdemes
Expert
Expert
Jump to solution

Just did a quick check and used the following command successfully:

robocopy /MIR /COPYALL "C:\Shares\UEM_Profiles" "C:\Robocopy-Test\UEM_Profiles"

pastedImage_1.png


\\ Ivan
---
Twitter: @ivandemes
Blog: https://www.ivandemes.com
Reply
0 Kudos
sjesse
Leadership
Leadership
Jump to solution

I think I used these switches

ROBOCOPY /e /b /xj /r:2 /w:5 /v /it /purge /copyall

Reply
0 Kudos
lansti
Hot Shot
Hot Shot
Jump to solution

I used this in UEM for each user during logon. Then it worked for me. Only thing is that i need to wait a couple of weeks before i switch users over to the new servers..

Best regards
Lansti
MSUCON
Contributor
Contributor
Jump to solution

Hey Lansti,

I am in a similar situation and was hoping you could give some more insight into your configuration. 

Do you do a run once for the logon script?

Were you able to specify the profile with %userprofile%

robocopy /MIR /COPYALL "C:\Shares\UEM_Profiles\%userprofile%" "C:\Robocopy-Test\UEM_Profiles\%userprofile%"

What switches did you have success with? Just the /copyall?

Thank you!

Reply
0 Kudos