Solved

Scripting

Posted on 2013-02-05
8
188 Views
Last Modified: 2013-02-07
Need to set an attribute on a about 2000 users but dont have anything in common ... can you guys maybe share how this can be achieved
0
Comment
Question by:vicky19
  • 4
  • 2
  • 2
8 Comments
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 38856709
According to my knowledge you need to have something common to filter out these users

- Rancy
0
 
LVL 4

Author Comment

by:vicky19
ID: 38857117
Someone else has some idea
0
 
LVL 16

Expert Comment

by:Rajitha Chimmani
ID: 38857201
Do you have the list of users? If so, you can feed the input to txt or csv file and get it done.
0
 
LVL 4

Author Comment

by:vicky19
ID: 38857206
I just have their first name would i need something additional and what would that be and what to do after that
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 250 total points
ID: 38857226
Yes, you would need one unique attribute of those users like displayname, alias or primary SMTP address.

Then once you have them you can try the below lines. i have given the command to update the mailbox properties as you have not mentioned which attribute you are trying to set.

If you have the names in a txt file, use the following (assuming that you would like to set the customattribute1 to test)

Get-Content users.txt | set-mailbox -customattribute1 test
0
 
LVL 4

Author Comment

by:vicky19
ID: 38863491
What should the TXT look like, something like below is fine

LastName, FirstName
LastName1, FirstName1
LastName2, FirstName2
LastName3, FirstName3
LastName4, FirstName4
0
 
LVL 52

Assisted Solution

by:Manpreet SIngh Khatra
Manpreet SIngh Khatra earned 250 total points
ID: 38863704
Yes thats fine or even could be with SamID or similar information for all users

- Rancy
0
 
LVL 4

Author Closing Comment

by:vicky19
ID: 38863913
Thanks guys
0

Featured Post

Why won’t your email signature format correctly?

Struggling to get your corporate email signatures to format correctly? Does the logo keep resizing? Is the text appearing too big? What can you do to prevent this? Find out how you can save your signatures today.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a Shared Mailbox 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 >> Sha…
In this video we show how to create an Accepted Domain 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 >> Ac…

911 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

18 Experts available now in Live!

Get 1:1 Help Now