Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Add-PSSnapin takes way too much time

1,279 views
Skip to first unread message

John Vottero

unread,
Jun 24, 2009, 6:04:12 PM6/24/09
to

We've run into a situation where Add-PSSnapin takes way too much time,
around 60 to 90 seconds. This only happens on one particular machine (which
does not have Internet access). I *think* the delay is from verifying the
digital signature of the assembly and related files. This knowledgebase
article:

http://support.microsoft.com/kb/941990

talks about a problem with long assembly load times due to a delay in
downloading the certificate revocation list but, it does not address
PowerShell specifically.

Has anyone else had a problem with Add-PSSnapin taking too long? Is there a
way to tell PowerShell not to download the certificate revocation list?

Setting Execution Policy to Unrestricted had no effect.

Thanks,

John Vottero

RichS [MVP]

unread,
Jun 25, 2009, 5:52:01 AM6/25/09
to

I've not seen that particular problem. Which snapin is causing the problems?

Have you tried to ngen the PowerShell assemblies?

See http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx
--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk

John Vottero

unread,
Jun 25, 2009, 10:38:26 AM6/25/09
to

It's our snapin, we have one customer that sees this problem.

I haven't ngened the PowerShell assemblies, it's the customers system. But,
it's not that PowerShell is slow, it's just the Add-PSSnapin hanging for 60
to 90 seconds,

"RichS [MVP]" <Rich...@discussions.microsoft.com> wrote in message
news:5EE93733-EB99-4411...@microsoft.com...

John Vottero

unread,
Jun 25, 2009, 4:14:02 PM6/25/09
to

I found a solution. The delay is from trying to download the certificate
revocation list when PowerShell is validating the digital signature of the
snap-in assembly and related files. You can disable this by doing:

- Open "Internet Options" in the Control Panel or Internet Explorer
- Click the "Advanced" tab
- Scroll down to "Security"
- UNcheck "Check for publisher's certificate revocation"
- UNcheck "Check for server certificate revocation"
- Click OK


"John Vottero" <JVot...@mvpsi.com> wrote in message
news:0A15C2FB-EE9B-462A...@microsoft.com...

Marco Shaw [MVP]

unread,
Jun 29, 2009, 9:31:54 PM6/29/09
to

Good find. You should blog this and/or post it on Microsoft connect...

Marco

"John Vottero" <JVot...@mvpsi.com> wrote in message

news:8961C036-7143-4FB5...@microsoft.com...

John Vottero

unread,
Jul 1, 2009, 11:36:51 AM7/1/09
to

"Marco Shaw [MVP]" <marco.shaw@NO_SPAMgmail.com> wrote in message
news:O$08NKS#JHA....@TK2MSFTNGP02.phx.gbl...

> Good find. You should blog this and/or post it on Microsoft connect...
>

I posted it in our knowledgebase:

http://www.JAMSsupport.com/KnowledgebaseArticle50030.aspx

I'll probably post something in Connect too but, I don't think this is
something that can be fixed.

0 new messages