To set the extensionAttribute1 attribute to "NoSync" for all users in the Users OU, using PowerShell:
Get-ADUser -SearchBase "OU=Users,DC=domain,DC=local" -Filter * | Set-ADuser -Add @{extensionAttribute1="NoSync"}
No comments:
Post a Comment