Solved

Change tittle of all users in an Active Directory group

Posted on 2014-03-12
4
363 Views
Last Modified: 2014-03-13
Hi EE

I am striking out with the Set-ADGroup option if that is the correct one to use.

I want to change the tittle of all AD users of a certain AD group .

Ex .. Change tittle to  "New Tittle" for all members of Group1
0
Comment
Question by:MilesLogan
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Justin Yeung
ID: 39924691
do you mean the job title? if so

#run this to make sure it got the groups that you want to make changes before place into #the script

get-adgroup -filter * -searchbase "the OU" | ? {$_.name -like " something"}


Script start here
#search for the groups that you want to make changes
$groups = get-adgroup -filter * -searchbase "the OU" | ? {$_.name -like " something"}
foreach ($Group in $groups)
{
#get the group (each group of the searched and set the user title to "your title"
get-adgroupmember -id $group.name | set-aduser -title "your title"
}
0
 
LVL 40

Accepted Solution

by:
Subsun earned 300 total points
ID: 39924800
If you are trying to work on single group then following code should work...
Get-ADGroupMember Group1 | ?{$_.objectClass -EQ "User"} | Set-ADUser -Title "New Tittle"

Open in new window

0
 
LVL 14

Assisted Solution

by:Justin Yeung
Justin Yeung earned 200 total points
ID: 39925339
he needs to do more than 1 group.............

you can also place your group name to a txt or cvs file

and do the import

$groups = get-content "path.txt"

foreach ($Group in $groups)
{
#get the group (each group of the searched and set the user title to "your title"
get-adgroupmember -id $group| set-aduser -title "your title"
}
0
 
LVL 2

Author Closing Comment

by:MilesLogan
ID: 39927077
Thank you guys !!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

773 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