/build/static/layout/Breadcrumb_cap_w.png

PowerShell: Copying all files with specific extensions from one directory to another?

Hey there,

I currently am working at a client site and I need to be able to use PowerShell to search through all folders of a directory and copy only .msi/.exe files to my local computer but, exclude any .exe files name that starts with SDLSetup. I need to this so I can convert all Packages into Applications. This is for SCCM and later down the road we will be converting to .appx (App-V) I figured the conversion would a go a lot smoother with .msi's instead of a Wise Script (SDLSetup.exe)

Thanks.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: dedenker 10 years ago
3rd Degree Black Belt
1
If you know or want to learn powershell (a good start for an Admin).
You can use this example.
And these examples, then the rest is easy.

with a little searching you can find tips and tricks on kicking off your wise script...
Good luck!
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ