Solved

Change tittle of all users in an Active Directory group

Posted on 2014-03-12
4
365 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 describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

856 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