You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot delete a mail contact from Office 365 in v6.0.0-beta.5 #5381
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
Activity
adaviel commentedon Nov 8, 2017
Remove-DistributionGroup behaves in the same way. Also Remove-UnifiedGroup
SteveL-MSFT commentedon Nov 8, 2017
Related #5130
andrew951 commentedon Nov 14, 2017
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.SteveL-MSFT commentedon Nov 14, 2017
Andrew Shin (@andrew951) if it's a remote prompt issue, that should be addressed by #5321
adaviel commentedon Nov 14, 2017
-confirm:$false works, thanks
SteveL-MSFT commentedon Nov 15, 2017
Looks like dupe of #5321