Powershell – resolve full names to usernames from CSV file

It’s unbelievable how long it took me to figure out this simple Powershell script, but yet it does the trick :). Often you receive a request to do a certain action with a bunch of accounts, and (obviously) the list provided contains the full names rather usernames. Pain to do it manually, but yet we can utilise Powershell here. What you need: CSV file, with only one column, and the header of the column must be called “Name”, if you prefer to use something different, simply amend Name in line 6 to reflect your header....

21 October 2017 · 1 min · 181 words · Kamil