Updating Attributes in user accounts in AD using PS
Revision as of 15:57, 3 May 2017 by Michael.mast (talk | contribs)
import-module activedirectory $userstoupdate = get-aduser -filter * -searchbase "OU=Users,DC=yout,DC=top,DC=domain" foreach($userslisted in $userstoupdate) { set-aduser -Identity "$userslisted" -clear extensionAttribute11 set-aduser -Identity "$userslisted" -add @{extensionAttribute10="HD User With Twin"} }