Question

Migrating roaming profile share to a new server

Asked by: mrroonie

Hello all

A bit of background info first -
I have a network of 500+ users all with roaming profiles. Our existing file server (well call it server1) is running out of space so I have bought a much bigger server (called, imaginatively enough, server2) to cope with all the data.
I cant just add a terastation to server1 as its 4 years old and needs replacing.

Those of you that have worked with roaming profiles before will know how much of pain dealing with folder permissions are.
Both servers are Windows 2003 storage edition

Now to the problem - I need to migrate all profiles over to the new server keeping permissions and shares intact.
I have tried robocopy with the /mir /copyall /e switches, and backing up and restoring using retrospect and NTbackup  while they restore the permissions none of them restore the share.

All users have their own profile folder called username$ so they are hidden shares. I really dont want to run through 500+ folders recreating the shares & permissions manually, so is there a way to use a variable in a batch file maybe or rmtshare or any other software you guys can think of,  so it looks at the folder name, shares it as the folder name plus the $ and giving the user the folder is named after the appropriate permissions?

Is this the best way to go about it or have I missed some software that will completely mirror the server and save me the hassle of doing any of this?

My plan, once I get past this little problem, is to get the shares onto server2, then rename server2 as server1 and give it server1s ip address, to save going through active directory and redirecting hundreds of user accounts.   will this work? Im pretty sure it will but Id like to have it confirmed

Any suggestions on the above or any other ways of handling this would be greatly appreciated

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-02 at 06:26:35ID24539477
Tags

migrating roaming profiles

Topics

Computer Servers

,

Storage Technology

,

Windows Network Security

Participating Experts
2
Points
500
Comments
51

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Roaming Profiles
    We are using Windows Small Business Server 2003 and are Migrating to Windows Standard Server 2003 R2. Currently we are using local profiles. But I want to start using roaming profiles because people in this company desk hop. The problem is when I go to a users local m...
  2. Local Profile migration utility to Roaming Profile?
    Does anyone know of a utility or method that will take a Local User profile and migrate it to a Roaming Profile? For example, an existing user only using Local Profile and then admin decides to give that user a roaming profile and wants to migrate the local profile from th...
  3. Domain Migration and Roaming profiles
    We recently did a domain migration from tpsc.winchester.blah.blah to winchesterva.blah and everything seems to be working fine all the users and printers and shares. However, the roaming profiles are coming up saying they don't have permissions, access denied, loading local p...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jfer0x01Posted on 2009-07-02 at 07:10:15ID: 24763483

Hi, if everything  is in AD, use the Active Directory Migration Tool

The HD Mirror will probably give you errors, due to hardware changes from your old server to the new one

My opinion would be to, make the new server a member server to begin with,

I will make a script over the weekend to ease the move
Jfer

 

by: mrrooniePosted on 2009-07-02 at 07:18:59ID: 24763577

hi jfer, the new server is a member server already but i'm not sure what you mean - the migration tool wouldn't move the shares would it?

good point on the mirroring

 

by: jfer0x01Posted on 2009-07-02 at 07:35:21ID: 24763787

Hi,

according to MS, yes

http://www.microsoft.com/DownLoads/details.aspx?familyid=6D710919-1BA5-41CA-B2F3-C11BCB4857AF&displaylang=en

I myself have never tried this, but it is worth at least trying it

Jfer

 

by: mrrooniePosted on 2009-07-03 at 04:23:16ID: 24771629

Hi Jfer

after going through the 200 odd page of the ADMT user guide and giving it a test run i have found out the migration tool is to migrate users to another domain, it will not let you migrate users folders to another server on the same domain

a good idea, i thought this would make my mission a lot easier, but sadly it is not the case.

thanks anyway

 

by: jfer0x01Posted on 2009-07-03 at 07:32:01ID: 24772595

Hello,

i was under the impression the roaming profile reference would be moved to the new server

In any case i will make a script for you, to save the time

Jfer

 

by: mrrooniePosted on 2009-07-03 at 07:38:16ID: 24772638

Hi

yes the roaming profiles are moving to a new server, but in the same domain. i'm just replacing a tired old file server

thanks, any help is appreciated

 

by: mrrooniePosted on 2009-07-03 at 07:58:30ID: 24772749

to clarify - Active Directory is on a separate server (PDC) controlling only the logins, the users profile paths point to server1 to look for their profiles

 

by: jfer0x01Posted on 2009-07-03 at 17:06:06ID: 24775006

Ok

first, make sure all 500 users are offline, seeing as this is a long weekend, take advantage of it

(it's important to make sure to get everyone's last bit of info because if they use info on the old profile while doing the move, they will lose the info-remember)

secondly, use a tool like RichCopy or Robocopy to move the profiles to the new server

after you made a good, working copy of everyone's profiles

Finally, found this on

http://forums.windowsitpro.com/web/forum/messageview.aspx?catid=43&threadid=47964&STARTPAGE=1

DSQUERY USER OU=Employees,DC=Example,DC=com | DSMOD USER PROFILE 3\\TargetServer\Profiles\$username$3

So modify your DSQUERY appropriately so that it outputs the appropriate list of users and pipe it to DSMOD

Viola, just make sure to modify script for needs

Jfer

 

by: notacomputergeekPosted on 2009-07-03 at 22:01:49ID: 24775764

Do you really need to copy the profiles?

Is it as simple as changing the AD roaming profile property to the new server location and the next time users log in, it will copy (syncronize) their local profle to the new server, since nothing is there. Just create the main folder/share first (e.g. e:\profies) on the new server.

 

by: jfer0x01Posted on 2009-07-04 at 04:31:30ID: 24776643

He needs to copy the profiles because he indicated that he was running out of hard disk space, the profiles are only going to get larger over time

Jfer

 

by: jfer0x01Posted on 2009-07-04 at 04:33:49ID: 24776647

Actually, nota's suggestion may work, try it out with a handful of users first

Jfer

 

by: notacomputergeekPosted on 2009-07-04 at 10:44:23ID: 24777459

They will need to log into the computer that they last logged into with the most recent local profile. You may still need to make each separate user's folder a hidden share, if needed. Why does each user's folder need to be a hidden share?

 

by: jfer0x01Posted on 2009-07-04 at 13:47:23ID: 24777966

DSQUERY USER OU=Employees,DC=Example,DC=com | DSMOD USER PROFILE 3\\TargetServer\Profiles\$username$3

the script it posted before had character literals changed, follow the example on the link if the one above has the same errors

Jfer

 

by: jfer0x01Posted on 2009-07-04 at 13:48:13ID: 24777969

nope, use the code on the link mrroonie

nota, what hidden share?

 

by: notacomputergeekPosted on 2009-07-05 at 20:00:31ID: 24782267

"All users have their own profile folder called username$ so they are hidden shares" - OP

 

by: jfer0x01Posted on 2009-07-05 at 20:10:20ID: 24782296

the use of $username$ is a wildcard condition

 

by: mrrooniePosted on 2009-07-06 at 00:43:54ID: 24783260

sorry for the late response all, i was away from all technology over the weekend. thanks for all the suggestions, i'm just about to try nota...s and i'll get back to you

 

by: mrrooniePosted on 2009-07-06 at 00:51:24ID: 24783292

notas suggestion didn't work - when changing the profile path in AD to the new server, after clicking apply i get the message 'the \\server2\user$ home folder was not created because the path was not found......The user account has been updated with the new home folder value but you must create the folder manually'.

When first setting up a new users roaming profile i've had to create the user, then create the folder and share it on the file server, and once that has been set up THEN point the profile to the share

 

by: mrrooniePosted on 2009-07-06 at 02:11:17ID: 24783557

to add to the above - i tried logging in with my own user account after pointing the profile to the new server - it logged in  with a local profile but didn't save it back to the new location, ran a search on the new server for my profile name and a couple of files in my home drive (the home drive is mapped to the shared folder which admin has access to - it is not the profile folder, but is very nearly in the same location) - didn't find anything

nota - all profiles were set up as hidden shares when i inherited the domain. in fact, i have something else to try - instead of \\server2\username$ i could set it as \\server2\users\username$, so creating a 'users' folder on the new server and see if Windows dumps the profile in there

jfer - all users will be logged off when i do this, i have scheduled the big switch for the weekend of the 18th & 19 July, so my users have plenty of notice that they are not to come in that weekend. Woohoo - a lovely summers weekend and i'm stuck in the office!

 

by: mrrooniePosted on 2009-07-06 at 02:19:36ID: 24783586

>>instead of \\server2\username$ i could set it as \\server2\users\username$, so creating a 'users' folder on the new server and see if Windows dumps the profile in there  << didn't work either. it created a folder called 'username$' but it was empty, i even took ownership of it to see if the data was hidden but it weren't. didn't recreate the share either

 

by: mrrooniePosted on 2009-07-06 at 03:32:27ID: 24783854

jfer - would the dsquery work for sub OU's?  i have an OU called 'Staff' and then underneath there are several OU's (admin, IT, etc etc just to keep it organised)

 

by: notacomputergeekPosted on 2009-07-06 at 07:13:29ID: 24785362

I was able to successfully "move" a user profile to another volume on the same server by changing the profile path, but the office I'm at only has a single server. I will test this at a multi-server site this afternoon or tomorrow morning.

Is server2 a member server or is it a DC with a different domain?

Have you tried the following command:
Xcopy C:\UsersProfiles D:\UsersProfiles /e /o /d /h /v /c
Where "D" is the new server location. You may want to create a temporary drive map.

Parameter      Description         
C      The original location of the UsersProfiles.
D      The partition on the disk where you plan to move the UsersProfiles.
/e      Copies all subdirectories, even if they are empty.
/o      Copies file ownership and discretionary access control list (DACL) information.
/d      Copies only those files whose source time is newer than the destination time.
/h      Copies files with hidden and system file attributes. By default, Xcopy does not copy hidden or system files.
/v      Verifies each new file.
/c      Ignores errors

xcopy /? for help

 

by: mrrooniePosted on 2009-07-06 at 07:24:08ID: 24785482

server2 is a member server on the same domain. i have not tried xcopy yet - is that in the resource toolkit?

robocopy keeps the permissions but does not keep the share

 

by: jfer0x01Posted on 2009-07-06 at 07:48:37ID: 24785716

what do you mean the share?

as long as you move the information, it should preserve ntfs and share permissions

 

by: mrrooniePosted on 2009-07-06 at 07:50:03ID: 24785731

the folder needs to be shared for active directory to see the profile folder, i did try to redirect a users profiole to the new server after running robocopy but AD moaned that it couldn't find the share

 

by: jfer0x01Posted on 2009-07-06 at 07:54:17ID: 24785765

ok, did you place the

\\TargetServer\Profiles\$username$ as the profile direction in the users profile

the reason it wont see it is because "dollar-sign"username"dollarsign" is a wildacard, and it will apply any username currently loaded into the profile path

trust me, copy the profile over to the new one, and place the string

\\TargetServer\Profiles\$username$ in the path, it should work

 

by: mrrooniePosted on 2009-07-06 at 07:57:28ID: 24785793

aaah - no i didn't yet, robocopy is still running, only on users beginning with 'L' at the moment. i'll try that now

 

by: mrrooniePosted on 2009-07-06 at 08:01:02ID: 24785834

just got the same warning as above with the $username$ in place, and i've just tested logging the user in and it says it can't find the profile path. i thought it was % not $?

 

by: mrrooniePosted on 2009-07-06 at 08:04:30ID: 24785860

doesn't work with % instead of $ either. it's definitely because it can't find the shared folder though, the 'local profile' warning when logging on says it can't find the profile folder

 

by: mrrooniePosted on 2009-07-06 at 08:07:58ID: 24785900

i'm out of the office for the rest of the week so i'm not going to be able to try anything until next week now

thanks for your suggestions so far. 1st thing i'll try when i get back will be the xcopy and let you know how i get on. has anyone used rmtshare before? that looks like it can re-share the folders but i've never used it before

 

by: jfer0x01Posted on 2009-07-06 at 08:35:50ID: 24786265

hi

did you make the shares based on their usernames?

i could make a script to make shares based of usernames, possibly

Jfer

 

by: jfer0x01Posted on 2009-07-07 at 06:27:51ID: 24793987

Ok,

just remember we are doing three different things

1. Move all share and profile data

Either by Robo Copy, or Another Xcopy variant

2. Remap Profiles to Users

-Use the cmd line script i posted previously

DSQUERY USER OU=Employees,DC=Example,DC=com | DSMOD USER -PROFILE ""\\TargetServer\Profiles\$username$""

3. Remap shares

It seems you can use the MS File Server Migration Toolkit for the Shares

http://www.microsoft.com/windowsserver2003/upgrading/nt4/tooldocs/msfsc.mspx

Jfer
also, found on

http://forums.techarena.in/server-migration/366197.htm

that explains how to use robocopy

 

by: mrrooniePosted on 2009-07-13 at 05:53:06ID: 24839171

hi jfer, back in the office today and all hell's broke loose, i've only just had chance to look back on here now. all sharenames are username$. haven't had a chance to look at xcopy yet but the file server migration kit looks promising, although it seems to be migrating from an NT server to 2003. i will test it this afternoon

 

by: jfer0x01Posted on 2009-07-13 at 14:19:58ID: 24844101

what do you mean all shares are username$, you mean hidden as pointed out before,

you may have to append $username$&"$" at the end of query if so

Jfer

 

by: jfer0x01Posted on 2009-07-13 at 14:20:33ID: 24844108

The tool also work from Win2k3 to Win2k3

 

by: mrrooniePosted on 2009-07-15 at 03:43:10ID: 24857884

hi jfer

so the script would read $username$$   ? or $username$"$"

yes i read that about the tool, i can't run the migration until this weekend though.

i have just tried xcopy but it still gives the user 'cannot find your user profile' when logging in

 

by: mrrooniePosted on 2009-07-15 at 05:04:45ID: 24858299

has anyone used subinacl to copy share permissions? i've been playing with it but i can't get the right syntax

 

by: mrrooniePosted on 2009-07-15 at 05:08:37ID: 24858321

the MS file server migration tool requires Windows server enterprise or datacentre editions - i am running std and storage edition so it won't work :(  so close...

 

by: mrrooniePosted on 2009-07-15 at 05:19:26ID: 24858418

apologies - its the DFS wizard that needs installing on the datacenter or enterprise editions, the migration tool works until i try to add the source server, which gives off

'cannot read file attributes  \\server1\users\username (NOT username$)
System error:2, the system cannot find the file specified

 

by: mrrooniePosted on 2009-07-15 at 05:22:39ID: 24858451

the plot thickens - the error above is pointing to a folder that doesn't exist

 

by: mrrooniePosted on 2009-07-16 at 03:00:03ID: 24867892

further investigation on the migration tool - i have removed all references to the \\server1\users\username in the registry at

HKLM>System>CurrentControlSet>Services>lanmanserver>shares

and

HKLM>System>CurrentControlSet>Services>lanmanserver>shares>security

but i'm still getting the same error as above. does anyone know where else to look for references to these missing shares?

 

by: jfer0x01Posted on 2009-07-16 at 04:48:56ID: 24868489

try

%username%&"$"

or simply

%username%$

 

by: mrrooniePosted on 2009-07-17 at 04:22:47ID: 24877533

excellent jfer -

DSQUERY USER OU=Employees,DC=Example,DC=com | DSMOD USER -PROFILE ""\\TargetServer\Profiles\$username$"$"

 worked a treat

whats the -profile equivalent for the home folder?

 

by: mrrooniePosted on 2009-07-17 at 04:25:00ID: 24877550

also, would this work for child OU's?

as in

DSQUERY USER OU=Employees,OU=admin,DC=Example,DC=com | DSMOD USER -PROFILE ""\\TargetServer\Profiles\$username$"$"

 

by: mrrooniePosted on 2009-07-17 at 04:27:14ID: 24877559

no it doesn't that way, nor does putting the direct OU=admin

 

by: jfer0x01Posted on 2009-07-17 at 09:31:42ID: 24880247

-hmdir is for home dirs

i cannot understand the last two comments,

What the status on the Migration?

Jfer

 

by: mrrooniePosted on 2009-07-18 at 01:15:17ID: 24885217

its going ahead today, just got in the office now - i'm going to reboot the old file server to see if removing those shares from the registry will allow the FSMT to work

 

by: mrrooniePosted on 2009-07-18 at 03:23:35ID: 24885504

to clarify - i have OU's inside OU's, to keep it organised eg

in the OU 'STAFF' i have more OU's underneath 'ADMIN' and 'LIBRARY' etc

don't worry about getting the syntax for OU's inside OU's tho, i have put them all at the root of the AD forest to run the script you advised above

 

by: mrrooniePosted on 2009-07-19 at 04:21:33ID: 24889026

job done - i think it was the way the network was originally set up that stopped my from running the FSMT, xcopy or robocopy properly (inherited network and all that) so i backed up all profiles, restored them to the new server and re-shared all folders manually. Jfer gets the points because that invaluable DSQUERY script saved me spending another 2 days pointing the AD users to the new profiles

 

by: mrrooniePosted on 2009-07-19 at 04:23:15ID: 31599177

get an A as if the network was set up properly in the first place i reckon the FSMT and robocopy would have worked, but that DSQUERY script saved a lot more hours work

 

by: jfer0x01Posted on 2009-07-19 at 08:25:04ID: 24889740

No problem

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...