I need the email address, location etc I need to query ad for user who have custom extensionattribute10 not set or not equal to specific value Is there a cmdlet or property to get all the groups that a particular user is a member of?
The Nude Collection
I am on a server under the domaina
Now there is a trust built between domaina and domainb
I would like to switch to domainb and get all the users that. From what i can tell it should be returning only displayname Problem is that distinguishedname is causing truncation problems later on in my process How can i get the script to only return certain properties?
Thank you very much for the reply, it was very helpful I want that it shows 'never expires' because that is the case When i check a user with expiration date it will show me the exact expiry date I also tried with if else statement, but no luck so far
The only thing i'd add to this is to return only the properties you need rather than all of them for each account selected