Author Posts

January 1, 2012 at 12:00 am

by Jordan at 2013-03-01 09:46:31

PowerShell padawan learner here.

Like the subject says, Looking for a script that will change users with the job title of "X" to the job title of "Y". Thanks in advance everyone.

by coderaven at 2013-03-01 12:11:31

What do you have so far? Are you using the ActiveDirectory module or the Quest AD module? Will you be reading from a text file or merely searching for a known title from all AD accounts?

by DonJ at 2013-03-02 10:10:32

If you're using the MS cmdlets, something like...

Get-ADUser -filter 'title -eq "old"' | Set-ADUser -title 'new'

The Quest cmdlets support a similar capability, with a different syntax. Note that if you have a LOT of users with the old title (like, more than a few hundred), you may need to take a different approach.

by Jordan at 2013-03-04 07:31:44

That worked perfect! Thank you.

[quote="DonJ"]If you're using the MS cmdlets, something like...

Get-ADUser -filter 'title -eq "old"' | Set-ADUser -title 'new'

The Quest cmdlets support a similar capability, with a different syntax. Note that if you have a LOT of users with the old title (like, more than a few hundred), you may need to take a different approach.[/quote]