Modifying Mailboxes using delegated partner credentials

Welcome Forums General PowerShell Q&A Modifying Mailboxes using delegated partner credentials

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
1 year, 8 months ago.

  • Author
    Posts
  • #67575

    Participant
    Points: 2
    Rank: Member

    My goal: To be able to administer our partner mailboxes i.e. Converting mailboxes to shared, set forwarding rules etc.. in powershell

    Current status: Script works as it should, connects me to my partners exchange online environments. Running Get-mailbox works fine; however, when we get to changing mailbox information it gets tricky.

    Issue: When I run the command below I receive the error: The remote server returned an error: (401) Unauthorized...

    Set-Mailbox -Identity email -Type Shared

    Oddly enough, if I run the command below, I get no error at all it commits the change of display name just fine.

    Set-Mailbox -Identity email -displayname NewName

    I have a test tenant I can work with that is solely in Office 365, meaning no hybrid configuration.

    I will happily paste my script however It keeps getting blocked as spam even after me sanitizing it of all confidential info (it doesnt have any to begin with).

  • #67582

    Participant
    Points: 0
    Rank: Member

    Have u checked ur rights on the mail box for ur user ?

    https://technet.microsoft.com/en-us/library/aa998218(v=exchg.160).aspx

    Get-mailboxperm

The topic ‘Modifying Mailboxes using delegated partner credentials’ is closed to new replies.