Author Posts

January 1, 2012 at 12:00 am

by albertwt at 2013-01-08 22:48:26

Hi,

I'd like to do Fileserver migration, so can anyone here please assist me with the Powershell script which can do the Directory structure copy along with the ACL and permission (just the directory only without the files) ?

Thanks

by Infradeploy at 2013-01-09 06:46:20

I'd use the trusted robocopy command line tool. Not as much fun but it is ready made.
http://www.petri.co.il/forums/showthread.php?t=21509

Add the '/sec' paramater to copy security

by DonJ at 2013-01-09 11:24:19

+1 on Robocopy. There's nothing native in PowerShell that will do this for you, and coding it would be pretty time-consuming. Robocopy is free and already does it.

by megamorf at 2013-01-09 16:34:54

Yes, robocopy or xcopy are the preferred tools to create a copy of a directory structure with its permissions.