Add attribute value based on user`s group membership?


hi,

i going use special attribute users. looking powershell script add special attribute value user account once user added security group. idea how?

say, got "extensionattribute1" attribute , not used anywhere in organization. if add user security group "a" , run powershell script automatically add value "1" user`s account`s attribute "extensionattribute1".

just wondering if can this.

many in advance.

you're using quest cmdlets. parameter sets aren't same.  (i had used microsoft's rsat tools cmdlets).

do this:

get-qadgroupmember groupname  | % {    set-qaduser $_.samaccountname -objectattribute @{"extensionattribute1"="1"} }


g. samuel hays



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client