Summary: Copy items in a folder and retain the container with Windows PowerShell 3.0.
Image may be NSFW.
Clik here to view. How can I use Windows PowerShell 3.0 to copy a folder structure from a drive to a network share, and retain the original structure?
Image may be NSFW.
Clik here to view. Use the Copy-Item cmdlet and specify the –Container switched parameter:
Copy-Item c:\fso –destination \\server1\share -recurse -container
Image may be NSFW.
Clik here to view.
Clik here to view.
