ttrbrtsn
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Get-ADUser -SearchBase 'ou=mia-users,dc=Yourdomai n,dc=local ' -Filter * |
Set-ADUser -StreetAddress "century Towers 123 Main st."
Set-ADUser -StreetAddress "century Towers 123 Main st."
ASKER
I have an ou = "mia-users"
street = "123 main st"
I want the street to read:
"century Towers
123 Main st."