Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Windows 7 Forum Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Copy directory structure with permissions intact and shares

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 06-11-2007   #1 (permalink)
Frank
Guest


 

Copy directory structure with permissions intact and shares

Hi,

What is the best way to copy a directory structure with permissions intact?
Also, can we use the same method with shares?

I know I can start with: dir -r | ?{$_.psiscontainer -eq $true}

Thanks,



My System SpecsSystem Spec
Old 06-11-2007   #2 (permalink)
Jeffery Hicks
Guest


 

Re: Copy directory structure with permissions intact and shares

Frank wrote:
> Hi,
>
> What is the best way to copy a directory structure with permissions intact?
> Also, can we use the same method with shares?
>
> I know I can start with: dir -r | ?{$_.psiscontainer -eq $true}
>
> Thanks,
>
>


If you want it done quickly and with minimal fuss, I'd just use Robocopy
with the /Sec argument.

--
Jeffery Hicks
SAPIEN Technologies - Scripting, Simplified.

blog: http://blog.SAPIEN.com
Community: http://www.scriptinganswers.com
Training: http://www.ScriptingTraining.com
Books: http://www.SAPIENPress.com
Editor: http://www.primalscript.com
Tools: http://www.scriptingoutpost.com

"Those who forget to script it are doomed to repeat it."

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy permissions jlavell General Discussion 1 07-21-2008 02:23 PM
Extreamly slow copy from XP shares! JS Vista networking & sharing 1 10-12-2007 08:01 AM
How to copy file to top level directory Siegfried Heintze Vista General 5 08-02-2007 02:28 PM
Copy NTFS permissions BMC PowerShell 1 08-01-2007 02:02 PM
File permissions in the Program Files directory kevincc Vista account administration 3 05-02-2007 12:36 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51