You could use xcopy or the better robocopy ?
greetings, Peter Schneider
"Uwe Ziegenhagen" <newsgroup@newsgroup> schrieb im Newsbeitrag
news:Z_Cdnb4IYcEut1fXRVn_vwA@newsgroup
> Hello,
>
> I have a template folder containing several folders with various acess
> limitation, let's call it C:\template
>
> I have n folders in D:\ where I need to copy all subfolders from the
> template to, preserving the original access rights.
>
> Is the following sufficient? I cannot test it at the moment. :-(
>
> $a = gci d:\
> foreach ($folder in $a){
> copy-item c:\template\* $folder\
> }
>
>
>
> Thanks,
>
>
> Uwe


