not something ive really needed to do before however i need to rename the (Name) displayed in ADUAC, managed to find the correct CMDLETs however i dont just want to press the button, would like to try on a few to test first. -Whatif is fine but i cant see what the name changed to / if it changed correctly.
so i would like to select the first 3 users in $users rename those and check
Although querying ALL users just for the first three that happen to come back is pretty brutal on the domain controller, from a performance perspective.
I can’t test it right this second, but I think -ResultSetSize 3 would limit the query to just the first three found. That should reduce any pounding on the DC before it even starts.