Solved

change addresses in powershell

Posted on 2014-04-24
3
251 Views
Last Modified: 2014-05-02
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"
0
Comment
Question by:ttrbrtsn
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
Biniek earned 500 total points
Comment Utility
0
 

Author Comment

by:ttrbrtsn
Comment Utility
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."
0
 
LVL 6

Expert Comment

by:Biniek
Comment Utility
Get-ADUser -SearchBase 'ou=mia-users,dc=Yourdomain,dc=local' -Filter * |

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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Synchronize a new Active Directory domain with an existing Office 365 tenant
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now