Changing users job title from X to Y

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 3 months ago.

  • Author
    Posts
  • #6295

    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]

You must be logged in to reply to this topic.