Link to home
Start Free TrialLog in
Avatar of ttrbrtsn
ttrbrtsnFlag for United States of America

asked on

change addresses in powershell

i need to change the addresses for all users according to location. in ADUC, i click on the properties of a user. in the address tab. in the box for STREET, i need add the building and street address. how can i do it in power shell that will add the value i need to the "STREET" box. all these users are in an OU called "MIA - Users"
ASKER CERTIFIED SOLUTION
Avatar of Biniek
Biniek
Flag of Poland image

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 ttrbrtsn

ASKER

thanks for the reference. however, I better at examples than reading a bunch of stuff.

I have an ou = "mia-users"
street = "123 main st"

I want the street to read:

"century Towers
123 Main st."
Get-ADUser -SearchBase 'ou=mia-users,dc=Yourdomain,dc=local' -Filter * |

Set-ADUser -StreetAddress "century Towers 123 Main st."