Categories: Exchange

Exchange 2013 – Exchange Management Shell (EMS) loading very slow

As you grow more experienced with Exchange (2007 / 2010 / 2013 or 2016) you get to the point where you actually have to start using PowerShell more often. While most of the things can be done from Exchange Management Console or Exchange Control Panel in later versions doing stuff manually starts being boring so you want to automated things here and there. During our work with Exchange Management Shell at some point we've noticed that it takes a lot of time to actually load the modules. And by a lot of time we mean 5 minutes or more. It was very surprising as the server wasn't overloaded or didn't even had that many users.

Problem Description

During starting up of the Exchange Management Shell you get an information that informs you some modules are getting loaded.

Creating implicit remoting module …

Getting formatting and output information from remote session … <number> objects received

To finally reach the expected EMS console

Most of the admins will actually see this command loading window but it takes about 1-5 seconds to load at max. So we were quite surprised to see 5 minutes or even 11 minutes at one time.

As you can imagine the frustration when you want to quickly do something and you have to wait for 10 minutes for EMS to start get on your nerves pretty quickly. We've researched many solutions to finally come to one that actually is as surprising as it can get.

Solution

It seems the culprit of this is the setting of large buffer for the width of the Exchange Management Shell window! Our settings are extremely high to cover a large buffer and not loose any data in the output.

As surprising it gets if you lower it to normal values (like 120) it start working as expected. Surprise, Surprise!

Notes

It's still unclear why expanding the buffer to higher limits would cause such long delay on the loading of PowerShell EMS console, but fortunately we know how to workaround it for now.

This post was last modified on March 20, 2016 12:24

Przemyslaw Klys

System Architect with over 14 years of experience in the IT field. Skilled, among others, in Active Directory, Microsoft Exchange and Office 365. Profoundly interested in PowerShell. Software geek.

Share
Published by
Przemyslaw Klys

Recent Posts

Upgrade Azure Active Directory Connect fails with unexpected error

Today, I made the decision to upgrade my test environment and update the version of…

6 days ago

Mastering Active Directory Hygiene: Automating Stale Computer Cleanup with CleanupMonster

Have you ever looked at your Active Directory and wondered, "Why do I still have…

4 months ago

Active Directory Replication Summary to your Email or Microsoft Teams

Active Directory replication is a critical process that ensures the consistent and up-to-date state of…

8 months ago

Syncing Global Address List (GAL) to personal contacts and between Office 365 tenants with PowerShell

Hey there! Today, I wanted to introduce you to one of the small but excellent…

1 year ago

Active Directory Health Check using Microsoft Entra Connect Health Service

Active Directory (AD) is crucial in managing identities and resources within an organization. Ensuring its…

1 year ago

Seamless HTML Report Creation: Harness the Power of Markdown with PSWriteHTML PowerShell Module

In today's digital age, the ability to create compelling and informative HTML reports and documents…

1 year ago