Command to move password protected folders and files

Creating a new server and trying to copy all the documents and folders from old server to new server, some documents are password protected along with having some password protected folder, is there a windows command that can copy all of those files and folders.
Replaced the "VMware" Zone with the "M$ OS", "2003 Server" and "2008 Server" Zones.

EE ZA Storage

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
What not use an imaging tool, like Ghost or Clonezilla?
Windows doesn't have any Built capabilities for password protecting folders or files. You can only limit how users or groups can access folders or files via ntfs permissions. As long as you have setup the new server as at least a member server of your domain, or as a Domain Controller, that server will know about those credentials and you should be able to copy such files or folders without issues.

If you have installed some 3rd party utility to password protect folders and files then you will need to check the manual of that utility for details.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Darius GhassemCommented:
You can use Robocopy and\or RichCopy
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

libranderwAuthor Commented:
I tried using Robocopy and the copy stopped on Password protected folders and file, I tried XCOPY as well with no luck, rindi the servers are on the same domain and I am an administrator of both servers, no third party utilites were used to password protect the files, it looks like most of the security was removed from some files and folders to restrict access.
You may need to take ownership.
Darius GhassemCommented:
I think you are going to have to unlock the password files to actually copying them that is a security feature when files\folders have passwords attached to them
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Use a cloning tool, Ghost or Clonezilla.
I suppose the files are encrypted with EFS.

Try this to be sure:

If they are encrypted you have to decrypt them before you should move them. Moving them by some 3rd party tools, linux etc. will only make them useless data on the target server.

libranderwAuthor Commented:
I tried taking ownership of the entire directory and pushing permisions all the way down so I was in full control of lthe entire directory, still stopped though on some file, ie word documents, saying that I needed to give myself permission, did that and was able to get that directory copied, any ideas how to make the process a little less time consuming?  
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Clone the disk, outside of the OS.
Darius GhassemCommented:
I would have to agree cloning the disk is going to be the only way if you don't unlock the password protected files
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.