Solved

change addresses in powershell

Posted on 2014-04-24
3
255 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
ID: 40020482
0
 

Author Comment

by:ttrbrtsn
ID: 40020502
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
ID: 40020635
Get-ADUser -SearchBase 'ou=mia-users,dc=Yourdomain,dc=local' -Filter * |

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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This video discusses moving either the default database or any database to a new volume.

713 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