Entries by Mike Khzouz

How to Connect to Office 365 Through Powershell

1- In Windows run PowerShell as an admin 2- Install PowerShell v2 if not installed: Install-Module -Name ExchangeOnlineManagement 3- Import Exchange Online Management module: Import-Module ExchangeOnlineManagement For Windows 11 you might have to allow running scripts because running scripts is  disabled by default, run this command to allow running scripts. Set-ExecutionPolicy RemoteSigned  4- Connect to […]

How to renew OAUTH SSL Certificate in Exchange

  Open Exchange PowerShell on the Exchange server Run the following command (replace *.domainname below with the domain name) New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName “CN= Microsoft Exchange Server Auth Certificate” -DomainName “*.domainname” -FriendlyName “Microsoft Exchange Server Auth Certificate” -Services SMTP Answer No to over-write Write down the certificate thumpprint Type: $date = Get-Date Type: […]

PowerShell failed to invoke ‘New-FederationTrust’: Unable to access the Federation Metadata document from the federation partner

We were in the process of migrating mailboxes on-premise Exchange 2013 running on Windows Server 2012 to office 365  and while installing the Hybrid Configuration Wizard we were getting the following error. PowerShell failed to invoke ‘New-FederationTrust’: Unable to access the Federation Metadata document from the federation partner. Detailed information: “The underlying connection was closed: […]

Exchange mailbox move – Unable to open message store. hr=0x80040111, ec=-2147221231

When trying to move a mailbox from one Exchange server 2008/2010/2013 to another or from Database to another you get the error message below.  Fixing it is easy if you have used ASDIEdit before.  Basically you are going to reset the Exchange Mailbox Move Values… Sample Error: Data migrated: Migration rate: Error: MigrationTransientException: Failed to […]

There are blocking issues for the physical-to-virtual conversion, there is no BCD boot…

There are two traditional ways to move physical machines to Hyper-V virtual machine using Microsoft Tools. 1- Microsoft Virtual Machine Converter When you try to convert a Windows server 2012 for example from physical to a VM, you might get the following error: Microsoft Virtual machine Converter encountered an error while attempting to convert the […]