Solved

migrating users folders from server 03 to server 08

Posted on 2010-08-20
18
439 Views
Last Modified: 2012-05-10
I am migrating about 2,000 user foldeers from a server 2003 box to a server 2008 R2 box, and I am using robocopy from 2008 server.
The NTFS permissions are comming over but not the shares.
Can someone suggest the easiest way I can re create the shares for all the home folders.

thanks in advance.
0
Comment
Question by:Jamesm007
18 Comments
 
LVL 3

Expert Comment

by:JtR
ID: 33483006
has every user a share that has the same name like the users directory??
0
 
LVL 1

Author Comment

by:Jamesm007
ID: 33483016
Yes all shares are the same name as their directory but with a $
0
 
LVL 6

Expert Comment

by:Elwin3
ID: 33483028
Only for user shares.

Move the files. Then in AD users & Computers on the accounts add a profile path e.g. \\server1\users\%username% and it will create the user share again.

hope this help.  
0
 
LVL 20

Expert Comment

by:Radhakrishnan Rajayyan
ID: 33483040
Download this software -  CopyRight2 from a company called Sys-Manage. It will copy all your shares including NTFS file permissions

http://www.sys-manage.com/PRODUCTS/CopyRight/tabid/64/Default.aspx

You have to register for download.
0
 
LVL 8

Expert Comment

by:Wikkard
ID: 33483046
Do you create a new share for each user ?

Normally you would create a single share for all users as shown below:
d:\userhome\user1
d:\userhome\user2
d:\userhome\user3  
etc

You then share the folder d:\userhome and each users would map a drive in their login script.

So user1's login script would then map g drive as follows:
g: drive (or whatever letter you like) as \\fileserver\userhome\user1

This way you only have 1 share but you set NTFS permissions on each user folder so they can only access their own.
0
 
LVL 1

Author Comment

by:Jamesm007
ID: 33483072
All options make sense. We currently use a man profile so I would have to try removing to create the share.

I like the idea of this program but I have started copying with robocopy - might be an overkill to start again.

As for the sharing one folder not sure if there is a disadvantage to this? Robocopy has brought along the individual security settings but if I share the root folder will that overwrite all permissions in the subfolders?
0
 
LVL 7

Expert Comment

by:CGretski
ID: 33483367
If you want to stick with individual shares run this from a command prompt in the parent folder:

for /d %%f in (*) do net share %%f=%%~ff /grant:<domain>\%%f,full /cache:none

replacing <domain> with your domain.

That will enumerate all subfolders, share them with the same name as their folder, then add full access rights to the user <domain>\foldername

(I've used this on server 2003, not tried 2008)
0
 
LVL 7

Accepted Solution

by:
CGretski earned 500 total points
ID: 33483385
sorry missed the $, and that was from a batch file so only needs 1 % from command

for /d %f in (*) do net share %f$=%~ff /grant:<domain>\%f,full /cache:none

0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 1

Author Comment

by:Jamesm007
ID: 33483394
CGretski, i setup a test folder with known users and run the command and the error below was what i got running through CMD

%%f wa sunexpected at this time.
0
 
LVL 1

Author Comment

by:Jamesm007
ID: 33483419
thanks That seemed to work for the test, Im waiting for robocopy to finish its current directory and I will try it and see how it looks.
This is nice and easy if it will do the trick! Ill let you know soon
thanks
0
 
LVL 4

Expert Comment

by:Gavincr001
ID: 33483836
Sometimes with Robocopy you only see the shares after boiuncing the server, or restarting netlogon service
0
 
LVL 1

Author Comment

by:Jamesm007
ID: 33483887
Gavincr001,

so youre saying robocopy in server 08 R2 will create the sahres for me? this is what I was unsure about.

If it does, I will have to wait untilt he process finishes and I will bounce the server to see if it has worked.
0
 
LVL 1

Author Comment

by:Jamesm007
ID: 33506012
CGretski:

I am trying to run your script in CMD but I get an error for each folder. "
The system cannot find the file specified."

It did work initially when I tried it on the same box, not sure if Ive missed something.

Any ideas.
thanks
0
 
LVL 1

Author Comment

by:Jamesm007
ID: 33506034
ignore that, I wasnt replacing <domain>

That works great BUT... if I try and map the share, I cant map it, although when I check the sharing properties foldername$ is shared.
Very strange.

So what I have had to do is put in the username path in the profile path and change the drive mapping of the users home folder to point to the path %username%$ and then I can map the share.

Not sure if theres something else I can do without having to go through the extra steps?
0
 
LVL 7

Expert Comment

by:CGretski
ID: 33509274
How are you trying to map the share, are you getting an error as you try map the share?

Who are you tryng to map the shares as? - that script only gave access to the user with the same name as the folder.
Also, check the filesystem permissions of the folder.

0
 
LVL 1

Author Comment

by:Jamesm007
ID: 33517981
I am trying to map the share as administrator. Even if I log in as the user it doesnt map.
mapping share by : \\servername\foldername$

If I was to run the share wizard, and the wizard shows the correct user$ share, all I do is just hit the share button it works.

Alternatively I can go through AD and enter the profile and login path and this seems to "wake up" the share that has been created by the script.

Note this is on a Server 08 box.

I can work around it, so its better than what i was doing earlier, but if you knew what could be causing this, it would be even better!
0
 
LVL 1

Author Comment

by:Jamesm007
ID: 34446051
CGretski should get some points as this gave me a partial solution and got me out of trouble - even though the admin did not have access.
Sorry for the delayed response - my bad.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now