I have a source folder like this:
source_folder -|
|-> sub_folder1
|-> sub_folder2
|-> sub_folder3
where sub_folder1, sub_folder2 and sub_folder3 have themselves got sub-folders and files. I also have an existing empty folder dest_folder and I want to end up with:
dest_folder -|
|-> sub_folder1
|-> sub_folder2
|-> sub_folder3
where the sub-folders are copies of the first lot. I tried Copy-Item source_folder dest_folder -Recurse but that left me with:
dest_folder -|
|-> source_folder -|
|-> sub_folder1
|-> sub_folder2
|-> sub_folder3
It seems like this should be possible with a simple Copy-Item if only I could find the right combination of wildcards and switches!