Is Your PowerShell Slow to Start?

I ran into a scenario last week where we had loaded the Compellent Storage Center Command Set for Windows PowerShell on a server.  When we launched the shell shortcut, the window opened but took a long time to get to a PowerShell command prompt.

So, what causes slow start-up when loading PowerShell?

The most common reason seems to be that machines experiencing this slowness are not connected to the Internet.

What?

Well, when Since PowerShell is loading the Compellent Command Set DLL externally, .NET has a security feature to check Microsoft’s CRL, or Certificate Revocation List.  This process verifies the authenticity and validity of the software publisher’s certificate.  If this check can’t reach the Internet, the process will time out after several minutes.  Now, this doesn’t prevent anything from loading (which seems odd), but it takes a couple minutes for a process that should take only a couple of seconds.

The easiest resolution at this point appears to allow Internet access to the server.  If that is not possible, you can disable the check for the publisher’s certificate revocation.  You can do this from Internet Explorer (or Control Panel, Internet Options) by clicking on Tools, Internet Options.  Under the Security section of the Advanced tab, uncheck “Check for publisher’s certificate revocation”.

image

NOTE: These type of security features are in place for a reason.  Take extreme caution when considering disabling these.

  • Any idea, how can I fix same on Server CORE?
    No Internet Explorer there..


  • Alex A.:

    Any idea, how can I fix same on Server CORE?
    No Internet Explorer there..

    As an alternative to Internet Explorer, you could use Group Policy to make the same changes.

  • Fantastic site! Your writing is so fresh compared to most other writers. Thank you for writing when you do, I’ll be sure to read more!

  • Juaness

    Thank you so much, it works!

  • George

    Didn’t work for me, still seems to be lagging.

  • Zong Nan

    Thanks a lot! It works for me.

  • Pavel Berzin

    Thanks a lot. It really fixed the issue with Powershell 5.0 on Win2008 R2 server