Last active
November 3, 2022 14:14
-
-
Save IT-Delinquent/d0cbd2e3c478f371e318f61cce946dc2 to your computer and use it in GitHub Desktop.
dirtyGetAndUpdateAzureADAttributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$marketingUsers = Get-AzureADUser -Filter "Department eq 'Marketing'" | |
foreach($user in $marketingUsers){ | |
Set-AzureADUser -ObjectID $user ` | |
-StreetAddress '51 River St.' ` | |
-City 'Ridgefield' ` | |
-State 'CT' ` | |
-PostalCode '06877' ` | |
-Country 'United States' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment