HH, that is all there is to using Windows Power Shell to set the display names of all your users in a particular organizational unit to be the same as the user names.
The thing that is great about this is that the Set-ADUser cmdlet has a parameter for Display Name, and this it makes it really easy.
So here is the command I use: Get-ADUser -Search Base 'ou=testou,dc=iammred,dc=net' -Filter * -Properties displayname | Set-ADUser -Display Name name Now I check the results, and they are exactly what I was afraid of the first time—I have a bunch of names.
See for yourself: PS C: Get-ADUser -Search Base 'ou=testou,dc=iammred,dc=net' -Filter * -Properties di splayname | select name, displayname name displayname ---- ----------- newtestuser70 name newtestuser71 name newtestuser72 name newtestuser73 name So I try one more time.
I am wondering if there is an easy way to populate the display name— it would be fine to make it the same as the user name. I let it steep for four minutes, and it is a lovely, light, and refreshing flavor.
I just need to get this done, and I do not want to spend a lot of time with it. —HH Hello HH, Microsoft Scripting Guy, Ed Wilson, is here. The tea is the perfect companion for doing a little bit of Active Directory Domain Services (AD DS) work.