Hi I am relatively new to PowerShell but am sure it is the solution to an interesting problem I am facing. I have been tasked with helping to clear up the file structure of users Documents areas in a school and after talking with staff they would like all current files (DocX, XLSX, JPG, PNG, TXT & PPTX) to be moved to a folder called archive to be located in there Documents folder. The folder structure on the file server is layed out as follows
So first job is creating a script that can make a folder called archive in each users Documents folder
And the second task is to create a script that will scan each Documents folder (Not subfolders like my pictures ect) and move certain file types to the newly created archive folder
There a few challenges to this but I believe its more than possible to do in a single PowerShell script. I will post what script I can but would really appreciate some expert input and if its possible can you post any script as verbose as possible as I am trying to learn as I go.