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 4- Connect to Office 365 with admin user Connect-ExchangeOnline  -UserPrincipalName  Admin@WhateverDomain.com Replace admin@whateverdomain.com above with office 365 administrator account.  You will be prompted for credentials. 5- After that if […]

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 on premise Exchange to 2013 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 […]