<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx</link><description>Below is the content of the Update-GAC.ps1 script that I run whenever I install a new version of PowerShell. Our installation is supposed to ngen the assemblies in the background. If that works, it doesn't work fast enough for me. Also I've seen lots</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#9930301</link><pubDate>Mon, 30 Nov 2009 18:26:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9930301</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;I finally tracked down the reason for my problems. &amp;nbsp;I am using signed scripts, and have set up an internal certificate server for the code signing cert. &amp;nbsp;The server does not have the required access to that server. &amp;nbsp;The code signing cert I created has references to the CRL as: &lt;/p&gt;
&lt;p&gt;URL=http://&amp;lt;certserver&amp;gt;/certenroll/&amp;lt;caname&amp;gt;.crl. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I needed to add permissions to that crl for everyone (off domain), and add firewall rules on port 80. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The server was not able to cache the CRL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9930301" width="1" height="1"&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#9927594</link><pubDate>Mon, 23 Nov 2009 22:36:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9927594</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Sorry to open an old topic, but I have a single server, having real problems opening powershell. &amp;nbsp;I have run the script attached to this thread, and it does throw errors trying to load the pscx.dll:&lt;/p&gt;
&lt;p&gt;Installing assembly C:\Program Files (x86)\PowerShell Community Extensions\Pscx.dll&lt;/p&gt;
&lt;p&gt;Failed to load dependency Pscx.Core of assembly Pscx, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null because of t&lt;/p&gt;
&lt;p&gt;he following error : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)&lt;/p&gt;
&lt;p&gt;The script did not improve loading times (3+ seconds). &amp;nbsp;here is oupt from JPS's information script (put noprofile in, as my profile adds some overhead):&lt;/p&gt;
&lt;p&gt;PS C:\&amp;gt; 1..10 | %{Measure-Command {powershell -noprofile exit}}|ft totalseconds&lt;/p&gt;
&lt;p&gt;TotalSeconds&lt;/p&gt;
&lt;p&gt;------------&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 3.8922882&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 3.2950101&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 3.4424849&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 3.4869485&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;3.448749&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 3.2428333&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 3.2916778&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;3.179595&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 3.5320035&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;3.352735&lt;/p&gt;
&lt;p&gt;PS C:\&amp;gt; gwmi win32_processor |fl name,NumberOfCores,MaxClockSpeed,L2CacheSize&lt;/p&gt;
&lt;p&gt;name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Intel(R) Xeon(R) CPU &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E5320 &amp;nbsp;@ 1.86GHz&lt;/p&gt;
&lt;p&gt;MaxClockSpeed : 1863&lt;/p&gt;
&lt;p&gt;L2CacheSize &amp;nbsp; : 0&lt;/p&gt;
&lt;p&gt;name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Intel(R) Xeon(R) CPU &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E5320 &amp;nbsp;@ 1.86GHz&lt;/p&gt;
&lt;p&gt;MaxClockSpeed : 1863&lt;/p&gt;
&lt;p&gt;L2CacheSize &amp;nbsp; : 0&lt;/p&gt;
&lt;p&gt;name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Intel(R) Xeon(R) CPU &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E5320 &amp;nbsp;@ 1.86GHz&lt;/p&gt;
&lt;p&gt;MaxClockSpeed : 1863&lt;/p&gt;
&lt;p&gt;L2CacheSize &amp;nbsp; : 0&lt;/p&gt;
&lt;p&gt;name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Intel(R) Xeon(R) CPU &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E5320 &amp;nbsp;@ 1.86GHz&lt;/p&gt;
&lt;p&gt;MaxClockSpeed : 1863&lt;/p&gt;
&lt;p&gt;L2CacheSize &amp;nbsp; : 0&lt;/p&gt;
&lt;p&gt;PS C:\&amp;gt; gwmi Win32_PhysicalMemory |ft tag,speed,{$_.capacity/1mb} -auto&lt;/p&gt;
&lt;p&gt;tag &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; speed $_.capacity/1mb&lt;/p&gt;
&lt;p&gt;--- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----- ---------------&lt;/p&gt;
&lt;p&gt;Physical Memory 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4096&lt;/p&gt;
&lt;p&gt;I tried running the script inside of powershell, and launched from a script. &amp;nbsp;I tried with and without PSCX installed. &amp;nbsp;I made sure to point to the correct framework directory (x64). &amp;nbsp;I cant get powershell to load in under 3 seconds.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jason&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9927594" width="1" height="1"&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#9576691</link><pubDate>Thu, 30 Apr 2009 01:10:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9576691</guid><dc:creator>radhat</dc:creator><description>&lt;p&gt;Mine went to .5 secs&lt;/p&gt;
&lt;p&gt;don't know what it was before, but this put some pep in it's step (both ways)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9576691" width="1" height="1"&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#9067275</link><pubDate>Thu, 13 Nov 2008 23:07:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9067275</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;Even after running this script my powershell takes &amp;gt; 20 seconds to start (either from shortcut or by typing powershell from cmd). &amp;nbsp;Starting it from within powershell itself is fast.&lt;/p&gt;
&lt;p&gt;Here is the output from the commands Josh suggested:&lt;/p&gt;
&lt;p&gt;PS C:\Documents and Settings\jdease&amp;gt; &amp;nbsp;1..10 | %{Measure-Command {powershell exit}}|ft totalseconds&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TotalSeconds&lt;/p&gt;
&lt;p&gt;------------&lt;/p&gt;
&lt;p&gt;0.6983097&lt;/p&gt;
&lt;p&gt;0.6771509&lt;/p&gt;
&lt;p&gt;0.7174827&lt;/p&gt;
&lt;p&gt;0.6861359&lt;/p&gt;
&lt;p&gt;0.6862929&lt;/p&gt;
&lt;p&gt;0.7018789&lt;/p&gt;
&lt;p&gt;0.6871349&lt;/p&gt;
&lt;p&gt;0.6774461&lt;/p&gt;
&lt;p&gt;0.6860443&lt;/p&gt;
&lt;p&gt;0.6863205&lt;/p&gt;
&lt;p&gt;PS C:\Documents and Settings\jdease&amp;gt; gwmi win32_processor |fl name,NumberOfCores,MaxClockSpeed,L2CacheSize&lt;/p&gt;
&lt;p&gt;name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Intel(R) Core(TM)2 CPU &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6400 &amp;nbsp;@ 2.13GHz&lt;/p&gt;
&lt;p&gt;NumberOfCores : 2&lt;/p&gt;
&lt;p&gt;MaxClockSpeed : 2128&lt;/p&gt;
&lt;p&gt;L2CacheSize &amp;nbsp; : 2048&lt;/p&gt;
&lt;p&gt;PS C:\Documents and Settings\jdease&amp;gt; gwmi Win32_PhysicalMemory |ft tag,speed,{$_.capacity/1mb} -auto&lt;/p&gt;
&lt;p&gt;tag &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; speed $_.capacity/1mb&lt;/p&gt;
&lt;p&gt;--- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----- ---------------&lt;/p&gt;
&lt;p&gt;Physical Memory 0 &amp;nbsp; 667 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1024&lt;/p&gt;
&lt;p&gt;Physical Memory 2 &amp;nbsp; 667 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1024&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9067275" width="1" height="1"&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#9027442</link><pubDate>Sat, 01 Nov 2008 02:03:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9027442</guid><dc:creator>PowerShell Team</dc:creator><description>&lt;p&gt;@Josh&lt;/p&gt;
&lt;p&gt;That doesn't sound right - we should be able to meet your needs. &amp;nbsp;Can you do the following and post it:&lt;/p&gt;
&lt;p&gt; 1..10 | %{Measure-Command {powershell exit}}|ft totalseconds&lt;/p&gt;
&lt;p&gt;gwmi win32_processor |fl name,NumberOfCores,MaxClockSpeed,L2CacheSize&lt;/p&gt;
&lt;p&gt;gwmi Win32_PhysicalMemory |ft tag,speed,{$_.capacity/1mb} -auto&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9027442" width="1" height="1"&gt;</description></item><item><title>Speed up Powershell V2?</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#9027400</link><pubDate>Sat, 01 Nov 2008 01:18:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9027400</guid><dc:creator>Josh Smith</dc:creator><description>&lt;p&gt;I ran the script in V2, still takes on the order of 15-20 seconds to get to PS when issuing powershell.exe from cmd. &amp;nbsp;I'm worried about the scripting speed. &amp;nbsp;I need to poll 300 machines repeatedly for very specific info. &amp;nbsp;It's starting to sound like I need to use a binary or maybe wscript&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9027400" width="1" height="1"&gt;</description></item><item><title>Speed up PowerShell</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#9024827</link><pubDate>Thu, 30 Oct 2008 20:06:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9024827</guid><dc:creator>Howard van Rooijen's Blog</dc:creator><description>&lt;p&gt;Jeffrey Snover just dropped this little gem into the &amp;quot; PowerShell: Creating Manageable Web Services &amp;quot;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9024827" width="1" height="1"&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#8967929</link><pubDate>Sun, 28 Sep 2008 11:15:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8967929</guid><dc:creator>Feras Mustafa</dc:creator><description>&lt;p&gt;I tried this Script and it does not do any thing to speed the start-up of poweshell console for Exchange 2007 installed on a Windows Server 2008!!! Any idea on how to fix this?? &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8967929" width="1" height="1"&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#8919458</link><pubDate>Tue, 02 Sep 2008 11:03:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8919458</guid><dc:creator>Kirill Osenkov - MSFT</dc:creator><description>&lt;p&gt;One can also determine the .NET framework install path using RuntimeEnvironment.GetRuntimeDirectory()&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/kirillosenkov/archive/2008/05/07/how-to-determine-the-net-installation-directory-and-clr-version.aspx"&gt;http://blogs.msdn.com/kirillosenkov/archive/2008/05/07/how-to-determine-the-net-installation-directory-and-clr-version.aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8919458" width="1" height="1"&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/b/powershell/archive/2007/11/08/update-gac-ps1.aspx#8897271</link><pubDate>Tue, 26 Aug 2008 16:17:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8897271</guid><dc:creator>Yuvi</dc:creator><description>&lt;p&gt;@Brian - Making Microsoft.NET\Framework into Microsoft.NET\Framework64 as DM said.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8897271" width="1" height="1"&gt;</description></item></channel></rss>