nav2567
asked on
GETADUSER
Hi,
I need to run the below script for an application vendor. Can someone explain what the following command does? I know the script will harvest information such as email address, title and so on in active directory but I would like to understand the detail.
Our users in AD are mostly in the USER container and there are some other groups scattered in other OUs. Should I run the below in ourdomain.com? If yes, do I need to specify or it will run from ourdomain.com by default?
Please advise. Many thanks.
Get-ADUser –LDAPFilter "(&(objectCategory=person) (objectCla ss=user)(! userAccoun tControl:1 .2.840.113 556.1.4.80 3:=2) (mail=*))" -Properties OfficePhone,EmailAddress,T itle,Offic e,Departme nt,Descrip tion,Manag er | Set-Custodian -Company <company>
I need to run the below script for an application vendor. Can someone explain what the following command does? I know the script will harvest information such as email address, title and so on in active directory but I would like to understand the detail.
Our users in AD are mostly in the USER container and there are some other groups scattered in other OUs. Should I run the below in ourdomain.com? If yes, do I need to specify or it will run from ourdomain.com by default?
Please advise. Many thanks.
Get-ADUser –LDAPFilter "(&(objectCategory=person)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.