I'm needing to copy the subfolders to another location.
- Folder1
- -subfolder1
- -subfolder2
- Folder2
and need it like...
- Folder1
- -subfolder1
- -subfolder2
I've used this script ... Copy-Item -LiteralPath '\ipaddress\Exports' -Destination '\ipaddress\Exports2' -Recurse -Filter {PSIsContainer -eq $true}
I was hoping to get the subfolders but instead I get the main folder with subfolders underneath...
- Folder1
- -subfolder1
- -subfolder2
- Folder2
- Folder1
- -subfolder1
- -subfolder2