[Solved] Script for renaming files in a specific way
As commented, it would be a lot simpler if you put the old and new ID values in a CSV file like this: “OldID”,”NewID” “12345”,”98765″ “23456”,”87654″ “34567”,”76543″ Then, something like below should work: # read this CSV to get an array of PSObjects $ids = Import-CSV -Path ‘D:\ReplaceId.csv’ # build a lookup table from the … Read more