Announcement

Collapse
No announcement yet.

EMS Script question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • EMS Script question

    I am running this command:

    get-mailbox -resultsize Unlimited | ft alias, name, jobtitle

    I'm trying to get a list of all mailboxes with the alias, name and jobtitle. The above command works for the alias and name but jobtitle does not show up. I've also tried title.

    Can I list the Jobtitle along with the others?

  • #2
    Re: EMS Script question

    Why not do a list of everything and get the correct name of the jobtitle attribute -- is it a custom one in your AD setup

    get-mailbox -identity <any valid mailbox> | fl

    then review all the fields available for your ft above
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: EMS Script question

      I don't get the option for jobtitle when I do an fl. It isn't a custom attribute. I'm trying to get the AD attribute.

      Comment


      • #4
        Re: EMS Script question

        Looks as if it isnt an available attribute (using http://stackoverflow.com/questions/7...rshell-command)

        However, AD attributes are available through "get-user" (use "title" attribute) and someone has kindly scripted bringing the two together:
        http://blogs.technet.com/b/evand/arc...-together.aspx

        Hope that sorts you out!
        Tom Jones
        MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
        PhD, MSc, FIAP, MIITT
        IT Trainer / Consultant
        Ossian Ltd
        Scotland

        ** Remember to give credit where credit is due and leave reputation points where appropriate **

        Comment


        • #5
          Re: EMS Script question

          This works. Thank you.

          Comment

          Working...
          X