Script to add extension attibute based on City field


hi,

i'm trying create script based using 2008r2 modify users custom attribute based on city field within ad. far i;ve come below:

get-aduser -filter 'city -like "sydney"' |set-adobject -replace @{"extensionattribute6"="value"

can point me in right direction working?

thanks.

 

you can use set-mailbox cmdlet set custom attribute6

like

set-mailbox -identity <d> -customattribute6

 

thanks

thiyagu


thiyagu | mcts/mcitp - exchange 2007 | mcse 2003[messaging] | http://www.myexchangeworld.com. posting provided "as is" no warranties, , confers no rights.


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...