Link to home
Start Free TrialLog in
Avatar of swgit
swgitFlag for United States of America

asked on

Update Everyone's Address in AD or GAL

Hi Experts,

We just moved, and hence, address got changed.  Is there a way I can update everyone address at once in AD or from Exchange/GAL?  Thanks.
Avatar of Joshua Grantom
Joshua Grantom
Flag of United States of America image

$users = Get-ADUser -filter *
foreach $user in $users) {
Set-ADUser $user -StreetAddress "12345 Testing St" -City "TestCity" -State "OK" -PostalCode "000000"
ASKER CERTIFIED SOLUTION
Avatar of Corvin McLean
Corvin McLean

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of swgit

ASKER

Thank you, Corvin.  This is awesome!

@Joshua -- Thank you!