TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Server 2003

move shared folders to a different server without loosing permissi

Windows Server 2003

 
 
Thread Tools Display Modes
Unread 11-02-2008, 06:20 PM   #1
Eli
Guest
 
Posts: n/a
move shared folders to a different server without loosing permissi

How to move shared folders to a different server without loosing permissions?
 
Unread 11-02-2008, 06:20 PM   #2
Meinolf Weber
Guest
 
Posts: n/a
Re: move shared folders to a different server without loosing permissi

Hello Eli,

With robocopy or xxcopy you can move data with keeping the permissions, if
the server is in the same domain. Or you can also crate a backup and restore
the backup, that will also keep the existing permissions. But i would not
move the data, i would copy them, so if something goes wrong, you still have
the source available.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm

> How to move shared folders to a different server without loosing
> permissions?
>



 
Unread 11-02-2008, 06:21 PM   #3
Chang Yin
Guest
 
Posts: n/a
RE: move shared folders to a different server without loosing permissi

Hello Eli,

Thank you for your post.

Also thank to Meinolf Weber for sharing the information. There are a lot of
tools for us to move folders or migrate shared folders, including some
third-party tools.

You can use the GUI tool File Server Migration Toolkit (FSMT) to accomplish
this task. Here are more information related to USMT:

File Server Migration Toolkit:
=======================
FSMT helps the system administrator easily migrate and consolidate shared
folders from servers running Windows NT? Server 4.0 or the Windows 2000
family of servers, to a server running Windows Server 2003 or Windows
Storage Server 2003.

You can download this tool from here:

Microsoft File Server Migration Toolkit 1.0:
http://www.microsoft.com/downloads/d...eae-930a-42b0-
b595-66f462f5d87b&DisplayLang=en

For more details about this tool, please refer to:
http://www.microsoft.com/windowsserv...ocs/msfsc.mspx

USMT should be the best tool for file server migration. However, instead of
using USMT, we can also manually migrate the shares with permissions. We
need to consider the following:

1. NTFS Permissions.
2. Share Permissions.

For NTFS Permissions:
=======================

We can copy the folders by using Robocopy.exe. With the /SEC switch, the
tool will also copy NTFS permissions when copying files.

This tool is included in Resource Kit Tools, you can download it from here:
http://www.microsoft.com/downloads/d...a69-57ff-4ae7-
96ee-b18c4790cffd&displaylang=en

You can simply use the command line by this way:

robocopy source destination [file] /sec

For more details about this tool, you can run "robocopy /?".

Note: To refresh security information for existing destination files and
directories without copying file data, we can use the /SECFIX switch.
/SECFIX copies permissions for newly copied files and refreshes security
information for existing destination files and directories.

For Share Permissions:
=======================

The migration of share permissions is much complicated than the NTFS
permission.

1. If there are not much shares or the shares use default or simple share
permissions, I would like to suggest that you manually enable the shares
and configure the share permissions on the target file server.

You may use another resource kit tool Permcopy.exe to copy share
permissions (Full Control, Read, and Change) from one existing share to
another.

permcopy \\SourceComputer SourceShare \\TargetComputer TargetShare.

2. If there are a large number of shares or the shares are using
complicated permissions, we may use the method according to the following
KB article:

Saving and Restoring Existing Windows Shares
http://support.microsoft.com/?id=125996

Note: This procedure applies only to NetBIOS shares and not to Macintosh
volumes.

For you convenience, I have summarized the steps below:

2.1) Copy all the data from the old file server to target file server using
Robocopy with /SEC switch. This will ensure that both the folder structures
and their NTFS permissions are fully copied the target file server.

Important Note: Please ensure that both the target file server and the
source file server have the same folder scheme (the shares' folder paths on
the target file server are the same as the ones on the source file server).

2.2) Copy the share permissions from the source file server

Actually, the share definitions are saved in the following registry key:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\lanmanserver\Shares]

Therefore, our steps in this section are:

2.2.1) Back up the above key on the target file server for recovery
purposes.

2.2.2) Back up the key on the source file server in to a reg file.

2.2.3) Merge the reg file to the target server.

I hope this will help you. Have a nice day!

Sincerely,
George Yin
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Unread 11-02-2008, 06:22 PM   #4
Eli
Guest
 
Posts: n/a
RE: move shared folders to a different server without loosing perm

Thanks for the instructions.
Another problem, after I move all the shared files, how do I remap all users
to their personal directories on the diffrent server?


"Chang Yin(MSFT)" wrote:

> Hello Eli,
>
> Thank you for your post.
>
> Also thank to Meinolf Weber for sharing the information. There are a lot of
> tools for us to move folders or migrate shared folders, including some
> third-party tools.
>
> You can use the GUI tool File Server Migration Toolkit (FSMT) to accomplish
> this task. Here are more information related to USMT:
>
> File Server Migration Toolkit:
> =======================
> FSMT helps the system administrator easily migrate and consolidate shared
> folders from servers running Windows NT? Server 4.0 or the Windows 2000
> family of servers, to a server running Windows Server 2003 or Windows
> Storage Server 2003.
>
> You can download this tool from here:
>
> Microsoft File Server Migration Toolkit 1.0:
> http://www.microsoft.com/downloads/d...eae-930a-42b0-
> b595-66f462f5d87b&DisplayLang=en
>
> For more details about this tool, please refer to:
> http://www.microsoft.com/windowsserv...ocs/msfsc.mspx
>
> USMT should be the best tool for file server migration. However, instead of
> using USMT, we can also manually migrate the shares with permissions. We
> need to consider the following:
>
> 1. NTFS Permissions.
> 2. Share Permissions.
>
> For NTFS Permissions:
> =======================
>
> We can copy the folders by using Robocopy.exe. With the /SEC switch, the
> tool will also copy NTFS permissions when copying files.
>
> This tool is included in Resource Kit Tools, you can download it from here:
> http://www.microsoft.com/downloads/d...a69-57ff-4ae7-
> 96ee-b18c4790cffd&displaylang=en
>
> You can simply use the command line by this way:
>
> robocopy source destination [file] /sec
>
> For more details about this tool, you can run "robocopy /?".
>
> Note: To refresh security information for existing destination files and
> directories without copying file data, we can use the /SECFIX switch.
> /SECFIX copies permissions for newly copied files and refreshes security
> information for existing destination files and directories.
>
> For Share Permissions:
> =======================
>
> The migration of share permissions is much complicated than the NTFS
> permission.
>
> 1. If there are not much shares or the shares use default or simple share
> permissions, I would like to suggest that you manually enable the shares
> and configure the share permissions on the target file server.
>
> You may use another resource kit tool Permcopy.exe to copy share
> permissions (Full Control, Read, and Change) from one existing share to
> another.
>
> permcopy \\SourceComputer SourceShare \\TargetComputer TargetShare.
>
> 2. If there are a large number of shares or the shares are using
> complicated permissions, we may use the method according to the following
> KB article:
>
> Saving and Restoring Existing Windows Shares
> http://support.microsoft.com/?id=125996
>
> Note: This procedure applies only to NetBIOS shares and not to Macintosh
> volumes.
>
> For you convenience, I have summarized the steps below:
>
> 2.1) Copy all the data from the old file server to target file server using
> Robocopy with /SEC switch. This will ensure that both the folder structures
> and their NTFS permissions are fully copied the target file server.
>
> Important Note: Please ensure that both the target file server and the
> source file server have the same folder scheme (the shares' folder paths on
> the target file server are the same as the ones on the source file server).
>
> 2.2) Copy the share permissions from the source file server
>
> Actually, the share definitions are saved in the following registry key:
>
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\lanmanserver\Shares]
>
> Therefore, our steps in this section are:
>
> 2.2.1) Back up the above key on the target file server for recovery
> purposes.
>
> 2.2.2) Back up the key on the source file server in to a reg file.
>
> 2.2.3) Merge the reg file to the target server.
>
> I hope this will help you. Have a nice day!
>
> Sincerely,
> George Yin
> Microsoft Online Support
> Microsoft Global Technical Support Center
>
> Get Secure! - www.microsoft.com/security
> ================================================== ===
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ================================================== ===
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>

 
Unread 11-02-2008, 06:24 PM   #5
Chang Yin
Guest
 
Posts: n/a
RE: move shared folders to a different server without loosing perm

Hello Eli,

Thank you for your reply.

Sorry, I am a bit unclear about this problem. Would you please help
collecting more information?

Firstly, may I know which kind of environment the target server is in? Is
it in an Active Directory domain environment or not (only some workgroups
with computers in)?

Secondly, I'm not quite sure about these symptoms "remap all users to their
personal directories". Which kind of "personal directories" do you mean,
Home Folders or Network Drivers? How did you map these directories before?
Would you please give me a simple example?

Please note that sometimes you can simply remap these directories by a
script, but in most cases you may still need to remap them manually.

If anything is unclear, please feel free to let me know. We look forward to
your reply. Thanks!

Sincerely,
George Yin
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Unread 11-02-2008, 06:24 PM   #6
Eli
Guest
 
Posts: n/a
RE: move shared folders to a different server without loosing perm

Servers 2003 SP2, Active Directory
I have a file server that is going out of space.
It has all kinds of public/departments specific shared folders and personal
home folders.
In each user profile there is a script that maps them to different public
shared folders.
Then in each profile there is a path for a “home share/folder” that points
them to a personal folder.
If I move all public folders to a different server I can change the path in
script and it will work.
But what do I do for personal home folders? There is no script, its path in
the profile.
Is there some kind of a script that can change all home path to a different
server or
I would have to manually change all the paths?

"Chang Yin(MSFT)" wrote:

> Hello Eli,
>
> Thank you for your reply.
>
> Sorry, I am a bit unclear about this problem. Would you please help
> collecting more information?
>
> Firstly, may I know which kind of environment the target server is in? Is
> it in an Active Directory domain environment or not (only some workgroups
> with computers in)?
>
> Secondly, I'm not quite sure about these symptoms "remap all users to their
> personal directories". Which kind of "personal directories" do you mean,
> Home Folders or Network Drivers? How did you map these directories before?
> Would you please give me a simple example?
>
> Please note that sometimes you can simply remap these directories by a
> script, but in most cases you may still need to remap them manually.
>
> If anything is unclear, please feel free to let me know. We look forward to
> your reply. Thanks!
>
> Sincerely,
> George Yin
> Microsoft Online Support
> Microsoft Global Technical Support Center
>
> Get Secure! - www.microsoft.com/security
> ================================================== ===
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ================================================== ===
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>

 
Unread 11-02-2008, 06:26 PM   #7
Chang Yin
Guest
 
Posts: n/a
RE: move shared folders to a different server without loosing perm

Hello Eli,

Thank you for your reply.

From your description, I understand that:

After these personal home folders are removed to the new server, you want
these users' Home Folders drive (on the client) to be remapped to this new
server. Ensure what we talk about is the Home Folder which can be
configured in the users' properties in "Active Directory Users and
Computers".

Suggestions:
========================

1.You can use a command line tool named dsmod to achieve this. This is done
on the new server.

1.1 To change the home folder drive location for multiple users:

Dsquery user "DN of the OU where users exists" | dsmod user -hmdir
\\servername\share\folderoftheuser

For example: dsquery user "CN=Users,DC=2003dom,DC=local" | dsmod user
-hmdir \\2003dom-member\home\$username$

Please note, you should use $username$ (include $) here to instead of
any real folder names if you want to use only one command line to achieve
this.

1.2 To change the home folder drive location for a single user:

Dsmod user "UserDN" -hmdir \\servername\share\folder

For ex:- Dsmod user "CN=User1,CN=Users,DC=2003dom,DC=local" -hmdir
\\2003dom-member\home\1

2.You also can change these personal Home Folders manually by changing the
users' properties in the "Active Directory Users and Computers". But this
may be time consuming.

I have tested this with few users and it works well, please let me know how
it goes for you.

Note: please check these above commands in a test environment first.

If anything is unclear, please feel free to let me know. I look forward to
your reply.

Have a nice day!

Sincerely,
George Yin
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Unread 11-02-2008, 06:30 PM   #8
Kevin D. Goodknecht Sr. [MVP]
Guest
 
Posts: n/a
Re: move shared folders to a different server without loosing perm

Read inline please.

In news:5830DA9C-C6BC-40CD-B261-50AD60E8AC2A@microsoft.com,
Eli <eli@newsgroup.nospam> typed:
> Servers 2003 SP2, Active Directory
> I have a file server that is going out of space.
> It has all kinds of public/departments specific shared folders and
> personal home folders.
> In each user profile there is a script that maps them to different
> public shared folders.
> Then in each profile there is a path for a "home share/folder" that
> points them to a personal folder.
> If I move all public folders to a different server I can change the
> path in script and it will work.
> But what do I do for personal home folders? There is no script, its
> path in the profile.
> Is there some kind of a script that can change all home path to a
> different server or
> I would have to manually change all the paths?



Are they all going to the same path? Example \\server\sharename\username?

Under Win2k3, ADU&C allows you to select multiple items, then select the
profile tab, in the Home Folder section, give it a Drive letter available on
all clients and servers and enter this \\server\sharename\%username%

You can use the Folder redirection policy in a GPO for their My Documents
folder, and select the option to move the My Documents contents to the new
location.



--
Best regards,
Kevin D. Goodknecht Sr. [MVP]
Hope This Helps

===================================
When responding to posts, please "Reply to Group"
via your newsreader so that others may learn and
benefit from your issue, to respond directly to
me remove the nospam. from my email address.
===================================
http://www.lonestaramerica.com/
http://support.wftx.us/
http://message.wftx.us/
===================================
Use Outlook Express?... Get OE_Quotefix:
It will strip signature out and more
http://home.in.tum.de/~jain/software/oe-quotefix/
===================================
Keep a back up of your OE settings and folders
with OEBackup:
http://www.oehelp.com/OEBackup/Default.aspx
===================================


 
Unread 11-02-2008, 06:36 PM   #9
George Yin
Guest
 
Posts: n/a
RE: move shared folders to a different server without loosing perm

Hello Eli,

How's everything going?

I'm wondering if the suggestion has helped or if you have any further
questions.

Please feel free to respond to the newsgroups if I can assist further.

I appreciate your time and look forward to hearing from you.

Sincerely,
George Yin
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.

 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 10:53 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional