Announcement

Collapse
No announcement yet.

Remove emailaddresses for one user only witj script powershell

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

  • Remove emailaddresses for one user only witj script powershell

    Hi,

    I would like to remove an emailaddresses example : [email protected] with the powershell command like this

    Set-Mailbox ndaigle -EmailAddresses @{'-'='[email protected]}

    But I have Exchange 2007 can somebody help me please ?

    Thank you

    Nathalie

  • #2
    Re: Remove emailaddresses for one user only witj script powershell

    powershell works with exchange 2007
    set-mailbox works with exchange 2007.
    it looks like you're missing the -identity
    try
    set-mailbox -id ndaigle -EmailAddresses @{'-'='[email protected]}
    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

    Comment


    • #3
      Re: Remove emailaddresses for one user only witj script powershell

      Thank you for the help I tried what you said but here is what a got from message:

      Set-Mailbox : Cannot bind parameter 'EmailAddresses'. Cannot convert "System.Collections.Hashtable" to "Microsoft.Exchange.Data.ProxyAddress".
      At line:1 char:40
      + set-mailbox -id ndaigle -EmailAddresses <<<< @{Remove='[email protected]'}

      Comment


      • #4
        Re: Remove emailaddresses for one user only witj script powershell

        i dont think what you want to do is quite that simple.

        Take a look at this

        http://social.technet.microsoft.com/...1-c38bd92bbd57
        Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

        Comment


        • #5
          Re: Remove emailaddresses for one user only witj script powershell

          If it is one user, isnt powershell a bit of overkill?
          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


          • #6
            Re: Remove emailaddresses for one user only witj script powershell

            Hi

            I have to do it for 200 emails

            Thanks
            Nathalie

            Comment


            • #7
              Re: Remove emailaddresses for one user only witj script powershell

              OK -- the post title didn't make that very clear
              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

              Working...
              X