Scripting Question

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

09/10/2014 4153 views
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)

0 Comments   [ + ] Show comments


All Answers

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!
Answered 09/11/2014 by: dedenker
3rd Degree Black Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


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