Jamie McKillop
asked on
Set employeeID on Contact
Hello,
This should be simple, but I can't figure out how to retrieve or set the employeeID field on a contact.
Thanks,
JJ
This should be simple, but I can't figure out how to retrieve or set the employeeID field on a contact.
Thanks,
JJ
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your reply Joseph. I've also figured out how to do this with the standard AD module.
I'm specifically looking to clear the field but you could also use -Add or -Replace to change values.
JJ
Get-ADObject -Filter 'ObjectClass -eq "contact"' | % {
Set-ADObject $_ -Clear employeeid
}
I'm specifically looking to clear the field but you could also use -Add or -Replace to change values.
JJ
However if you choose to use the Quest powershell cmdlets this is pretty simple. The quest cmdlets provide the -objectattributes switch which lets you update information that may not be exposed by one of the standard switches.
get-qadobject contactname | set-qadobject -objectattributes @{employeeID='3333333333'}