I'm using the Quest commandlets for a very simple and straightforward update but it's not working. No errors, it just fails to change the value:
Set-QADUser ttest -ObjectAttributes @{office="ABQ"}
Can't get much simpler - what am I doing wrong? both of these work fine:
Set-QADUser ttest -objectAttributes @{otherTelephone=@('555-34-67','555-34-68')}
Set-QADUser ttest -objectAttributes @{otherTelephone=''}
but this does not:
Set-QADUser ttest -objectAttributes @{extensionattribute2="test"}
Check the actual name of the attribute in Active Directory. The "office" attribute doesn't exist. I believe you want
physicalDeliveryOfficeName
. Be sure to -IncludeAllProperties when querying a user object to get the extensionAttribute2.Use ADSIEdit to get a list of AD user properties.
try this:
it worked for me.