Skip to content

Cannot delete a mail contact from Office 365 in v6.0.0-beta.5 #5381

Closed

Description

@adaviel

I have powershell-6.0.0_beta.5-1.el7.x86_64 on CentOS Linux release 7.4.1708
(beta.9 is unable to logon to Office365 - separate issue)

I can create and list an email contact:
> New-MailContact -Name "Jill Doe" -ExternalEmailAddress "jill@example.ca" -Alias jill
> Get-MailContact jill
Name Alias RecipientType
Jill Doe jill MailContact

I cannot remove one:
> Remove-MailContact jill
Object reference not set to an instance of an object.
+ CategoryInfo : OperationStopped: (outlook.office365.com:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : JobFailure
+ PSComputerName : outlook.office365.com

This works in powershell 5.1 on Windows

Activity

  1. adaviel commented on Nov 8, 2017

    @adaviel
    Author

    Remove-DistributionGroup behaves in the same way. Also Remove-UnifiedGroup

  2. added
    Resolution-Answered
    and removed
    Resolution-Answered
    on Nov 8, 2017
  3. SteveL-MSFT commented on Nov 8, 2017

    @SteveL-MSFT
    Member

    Related #5130

  4. added
    WG-Remoting
    on Nov 8, 2017
  5. andrew951 commented on Nov 14, 2017

    @andrew951

    Andrew Daviel (@adaviel) Steve Lee (@SteveL-MSFT) The workaround would be to add -confirm:$false. Looks like the prompt asking if you are sure you want to delete is causing the problem.

  6. SteveL-MSFT commented on Nov 14, 2017

    @SteveL-MSFT
    Member

    Andrew Shin (@andrew951) if it's a remote prompt issue, that should be addressed by #5321

  7. adaviel commented on Nov 14, 2017

    @adaviel
    Author

    -confirm:$false works, thanks

  8. SteveL-MSFT commented on Nov 15, 2017

    @SteveL-MSFT
    Member

    Looks like dupe of #5321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-DuplicateWG-Remoting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions