Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Add-PSSnapin takes way too much time

Reply
 
Old 06-24-2009   #1 (permalink)
John Vottero


 
 

Add-PSSnapin takes way too much time

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


My System SpecsSystem Spec
Old 06-25-2009   #2 (permalink)
RichS [MVP]


 
 

RE: Add-PSSnapin takes way too much time

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/arc...e-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" wrote:
Quote:

> 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
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Cmd takes long time to load Vista General
Windows takes a long time to log off Vista General
System takes a long time to boot Vista General
Like, how much time takes a backup? Vista General
Copy takes ALOT of time ! Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46