Solved

Change tittle of all users in an Active Directory group

Posted on 2014-03-12
4
366 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
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 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 …

733 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