This evening I came up with a way for PowerShell to move multiple folders depending on names in a CSV. Below I will describe the scenario and my PowerShell scripts coding.
Imagine you had a folder structure on your device (or network share) containing folders named after the users that use them e.g. The account John.Smith has a folder called John.Smith.
Document Share
Now imagine several of the users move to another company, or leave but want their folders to go with them. Their user names have been provided in a CSV file.
CSV of usernames
And the users (all leaving at the same time and going to the same new location) want their folders copying to the same location.
New Document Share (empty)
Each folder could individually be moved to the new location OR PowerShell could do all the moving for us!
You must be logged in to post a comment.