Hello ,
I have a folder with .jpg files inside. The files are pictures of users and are named using their correspondent "ext attribute 1" . I have also exported to a csv file all users inside an OU with Name, SamAccountName, extAttribute1. extAttribute1 has 7 digits.
Now, I need to for all files in the folder that have a file name with 7 digits to rename it to it's correspondent SamAccountName . If file name exists with SamAccountName, overwrite it.
I have several powershell commands to obtain .csv with the files name and the other mentioned before with AD account information for users in OU.
Can someone help me to achieve this.
Thanks,