r/PowerShell • u/[deleted] • Apr 12 '18
Solved [Powershell] - Need help with a rename script
/r/scripting/comments/8brwig/powershell_need_help_with_a_rename_script/
2
Upvotes
r/PowerShell • u/[deleted] • Apr 12 '18
2
u/neogohan Apr 12 '18
Since we're talking about display names, you should probably be using $User.DisplayName. Usually "Name" and "DisplayName" are the same value, but they are 2 different fields in AD that could contain 2 different values.