Solved

Scripting

Posted on 2013-02-05
8
190 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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
 
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This video discusses moving either the default database or any database to a new volume.

832 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