23 July 2019

Set the AD extensionAttribute1 for multiple users

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