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
Post a Comment