Updating Attributes in user accounts in AD using PS

From Michael's Information Zone
Revision as of 15:57, 3 May 2017 by Michael.mast (talk | contribs) (Created page with "import-module activedirectory $userstoupdate = get-aduser -filter * -searchbase "OU=Users,DC=yout,DC=top,DC=domain" foreach($userslisted in $userstoupdate) { set-aduser -Ident...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"} }