This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Ok. Apologies but not in front of a computer right now.
I have been working on a script for the last week to process a csv where some people exist already in AD and some don't.
The script all works fine. New users are created with all fields including the name field in AD OU to show :
Firstname Lastname IDNumber
This is also their display name such as:
Bob Jones [0001743]
ID number is their login name and pulled from. Csv
The issue is existing users
It does everything including displayname as above, but doesn't update what AD shows as "Name" when viewing the OU. I'd imagine this is the CN and have been messing with rename-adobject but I need it to do this as part of processing one user at a time, so ideally at the end of the line where I am doing all of my set-aduser variables.
This is cosmetic really but if I can fix that bit, I can stop thinking about it
Thanks in advance
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/PowerShell/...