I run a Powershell script on a computer that has no Internet connection. But it takes about 30 seconds to start it. How do I solve it? I have run ngen.
A:
Sounds like it might be trying to do a DNS lookup, and waits for it to time-out. I presume it doesn't take ~30 seconds to start on a machine with internet connection? You could try setting a bogus DNS resolver on the working machine, and see if it takes ~30 seconds there too.
fredden
2010-01-14 20:51:54
+7
A:
There is a known issue with certificate revocation list checks and .NET (which PowerShell is built on). Check out this post about the .NET issue.
Keith Hill
2010-01-14 21:41:37
I did as they say:select TOOLS/INTERNET OPTIONS from IE- select ADVANCED from the new window- scroll down to SECURITY- uncheck "check for publishers certificate revocation"And it solve the problem
magol
2010-01-15 08:59:23