Powershell 3.0: COPY-ITEM Filter or Include options not working

Viewed 25227

Does the -Filter or -Include parameter work for anyone when using Powershell 3.0? I've tried both of the following commands:

Copy-Item -Path c:\temp -Include "*.TXT" -Destination C:\temp2

and

Copy-Item -Path c:\temp -Filter "*.TXT" -Destination C:\temp2

Actually, for the -Filter option, an empty "temp" folder gets created in c:\TEMP2. I know that the following command works:

Copy-Item -Path c:\temp\*.TXT -Destination C:\temp2

But just wondering if anyone has come across this issue before?

1 Answers
Related