cawasaki
asked on
powershell script to get all AD user without displayname
hello,
i need a powershell script to get all AD user without displayname and export them to a csv file.
the script must get the user from specific OU.
after that, i need to use the csv file with user to set a displayname like that:
displayname = SN + Givenname
thanks for help
i need a powershell script to get all AD user without displayname and export them to a csv file.
the script must get the user from specific OU.
after that, i need to use the csv file with user to set a displayname like that:
displayname = SN + Givenname
thanks for help
ASKER
hello,
the script get the account, but
for lastname and firstname i have :
Microsoft.ActiveDirectory. Management .ADPropert yValueColl ection
and i need the script to:
after that, i need to use the csv file with user to set a displayname like that:
displayname = SN + Givenname
the script get the account, but
for lastname and firstname i have :
Microsoft.ActiveDirectory.
and i need the script to:
after that, i need to use the csv file with user to set a displayname like that:
displayname = SN + Givenname
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
thank you Chris :)
Open in new window
I think all of the properties I've asked for are returned by default. If any are inexplicably blank the property will need requested. For example:Open in new window
DistinguishedName is included because it makes pushing changes back in again afterwards a very definite process.