Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I search for files with certain extensions and move them to different folder using PowerShell?

share|improve this question

closed as not constructive by Sirex, mailq, HopelessN00b, rnxrx, Michael Hampton Sep 25 '12 at 23:40

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Next time, please put some effort into solving this yourself before you post here and when you do, post what code you currently have and what about it doesn't work. – MDMarra Sep 20 '12 at 15:06

The cmdlets that you're looking for are Get-ChildItem and Move-Item. You can read how they work by running Get-Help Get-ChildItem -full and Get-Help Move-Item -full

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.