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!
my home away from home and where I will be sharing my adventures in the world of technology and all things geek.
The technology subjects have varied over the years from Python code to handle ciphers and Pig Latin, to IoT sensors in Azure and Python handling Bluetooth, to Ansible and Terraform and material around DevOps.
You must be logged in to post a comment.