More Powershell Scripts

So I’ve been working on a couple of scripts lately to basically go through log files. See at work we have log files pretty much for everything our Point of Sale system does, and while I’m sure at some point we will delete them for now the owner wants them all kept. So I’m using these two scripts basically. I’m sure they can be combined into one script, but I’m not that good at powershell yet, and while I’ve had time to tweak and test these two scripts I really don’t have the time to combine them. So for now they’re separate, and maybe at one point I’ll combine them.

First one I’ll put up I a sort script. Basically what this does it takes an input and an output destination. Then it will take the files in the input and move them to the output directory and will put them in folders based on the year and month they were created.

#This script is designed to take files in a folder and then sort them and put them into folders based on their creation date.