Skip to content
  • How to start learning Linux
  • Labtech Implementation Stuff
  • Clogged
  • Active Directory DNS Troubleshooting
  • Some Roulette  Strat from Reddit
  • Mystery steel processing and testing
  • Croissants and Rose Lychee Cream
  • Mac and Cheese
  • DFS Replication: Requirements and Configuration
  • Services.msc not opening in Windows 11/10
  • Microsoft AD LDAP (2008): Importing Your Certificate .pfx File into the AD DS Personal Store
  • Powershell How to get all groups that a user is a member of?
  • Home Energy Saving Tips
  • Changing NTFS Security Permissions using PowerShell
  • VALORANT’S 128-TICK SERVERS

Merserver

Its a website

  • Uncategorized
  • IT
  • Unreal Engine
  • GameDev
  • Interesting Stuff
  • Food
  • Web Design
  • Kubernetes
  • Music
  • Linux
  • Toggle search form

Office 365 errors out when converting to shared email

Posted on January 8, 2021 By samadmin

This is for when Office 365 gives an error message when attempting to convert a terminated employee’s mailbox into a shared mailbox.  It uses powershell to connect and requires admin login for the account itself. (I have not tested this with our logins that have partner portal access.  If those work please update this wiki stating is as such.)

Launch powershell and input the command:

$UserCredential = Get-Credential

It will launch a credentials window.  Use the admin account user name and password.  After putting in the credendials input the next commands in sequence allowing for the prompt to restore after each command:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session -DisableNameChecking

Set-Mailbox [usermailbox] -Type Shared

Where [usermailbox] is the terminated employee.  If no error message happens then congratulations, you did a thing.  Disconnect from the session before closing the powershell window by inputing:

Remove-PSSession $Session

You can now assign permissions and remove licenses in the admin portal.

Uncategorized

Post navigation

Previous Post: Navicent / HCA unable to print
Next Post: Unreal C++ interfaces

Related Posts

e911 Test Call Script Uncategorized
eClinicalWorks “this device is not authorized” Uncategorized
Attachments not opening from Outlook Uncategorized
Disabling a touchscreen in Windows 10 Uncategorized
Medical and Non-Medical Device Integration with eClinicalWorks – July 2019 Uncategorized
On prem AD to Entra Uncategorized

Copyright © 2025 Merserver.

Powered by PressBook Masonry Dark