Solved

Move *data only* hard drive to new machine, retain permissions

Posted on 2011-03-11
8
532 Views
Last Modified: 2012-08-13
I have a hard drive in a PC that contains data files only (no OS or system files, non-bootable). It has quite complex permissions based on users/groups on the current PC

I want to move that drive to a new PC while retaining the user and group permissions. How do I go about doing this?
0
Comment
Question by:theskintman
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:lvanalstyne
ID: 35110267
Try xcopy in the command window.

example:
xcopy c:\olddocs c:\newdocs /O /X /E /H /K

These switches have the following effects:
/E - Copies folders and subfolders, including empty ones.
/H - Copies hidden and system files also.
/K - Copies attributes. Typically, Xcopy resets read-only attributes.
/O - Copies file ownership and ACL information.
/X - Copies file audit settings (implies /O).

You could use the command to copy to a flash drive or external drive, and then use it again to copy to the new machine. Or temporarily move the old drive into the new machine and copy it from there.


Source: http://support.microsoft.com/kb/323007
0
 

Author Comment

by:theskintman
ID: 35110304
Ideally, I want to avoid having to copy the files - just move the drive from the current machine to a new one.
0
 
LVL 1

Expert Comment

by:lvanalstyne
ID: 35110440
Ah. So these users, are they local to the machine, or domain users? I'm assuming local users...
0
 

Author Comment

by:theskintman
ID: 35110475
Yes, they are local users (and groups). I'm guessing I'd need to move them across first?
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 1

Expert Comment

by:lvanalstyne
ID: 35110994
Can you still log into windows on the original pc?
0
 

Author Comment

by:theskintman
ID: 35111017
Yes - it's just an old 2000 machine we run as a file server. All our work files are stored on the drive that we now want to move onto a newer, more powerful machine running XP.

Both machines are running fine.
0
 
LVL 14

Expert Comment

by:athomsfere
ID: 35111870
NTFS?

Same accounts on the existing machine and this one?

If the two above are true, then you should not have a problem. The NTFS format stores the ACLs on the file system so you should be OK just dropping it in.
0
 
LVL 1

Accepted Solution

by:
lvanalstyne earned 500 total points
ID: 35112171
How many accounts
Depending on how many users you have this may or may not be tedious:

Create accounts on the new computer with identical names to the ones on the original computer. These will have the same names, but not the same SIDs.

Put the drive in the new computer.

Get PSTools:
http://technet.microsoft.com/en-us/sysinternals/bb896649
and use psgetsid to get the SID of all of your users on your original computer (psgetid account) AND the SIDs of the accounts on the new computer.

Create a new file on your new computer called SAM.txt and fill it as follows:
__cachefileonly__=s-1-9-cacheonly
ComputerA\Account1=SID (gathered from psgetsid)
ComputerB\Account1=SID
ComputerA\Account2=SID
ComputerB\Account2=SID

Open in new window

etc....


Install subinacl:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en

Open a command window and run subinacl as follows:
subinacl /offlinesam="[b]PATH TO SAM.TXT[/b]" /subdirect "[b]PATH FILES ON DRIVE[/b]" /replace=ComputerA\Account1=ComputerB\Account1

Open in new window

etc...






0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

14 Experts available now in Live!

Get 1:1 Help Now