none
Litigation hold from text file RRS feed

  • Question

  • Here is the script I'm running; GC c:\test.txt | % {Set-Mailbox $_ -LitigationHoldEnabled $true}

    The text file has only 2 test accounts: o365.testuser1
    o365.testuser2  and no headers.

    The first is not running and comes back not found. The 2nd test account runs ok.

    • Moved by Bill_Stewart Tuesday, November 7, 2017 9:54 PM Unanswerable drive-by question
    Tuesday, September 19, 2017 7:49 PM

All replies

  • If the mailbox is not found then you need to use a good mailbox name.  mailboxes use an alias and not an AD account name.

    \_(ツ)_/

    Tuesday, September 19, 2017 8:07 PM
  • Thanks for the reply. If I switch the names, testuser2 first, this one comes back not found.

    The operation couldn't be performed because object 'o365.testuser2@ xxxxxx      ' couldn't be found on
    'CY1PR15A003DC04.NAMPR15A003.PROD.OUTLOOK.COM'.

    Wednesday, September 20, 2017 12:22 PM