I cant figure out what I am doing wrong with this command and would like another set of eyes to point it out.
I want to copy the directory structure but not the files the structure contains.
Copy-Item -recurse -exclude *.* -path \\server1\z$\backups\ -destination \\server2\z$\ -Verbose
The command runs but it copys files despite telling it not to copy files. How do i copy the directory tree and not the files?