<?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/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>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#5991626</link><pubDate>Thu, 08 Nov 2007 20:57:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5991626</guid><dc:creator>MSDN Blog Postings  » Update-Gac.ps1</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2007/11/08/update-gacps1/"&gt;http://msdnrss.thecoderblogs.com/2007/11/08/update-gacps1/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#5995137</link><pubDate>Thu, 08 Nov 2007 23:23:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5995137</guid><dc:creator>Chris Lieb</dc:creator><description>&lt;p&gt;I noticed that when this ran that it was unable to compile assemblies that were loaded by PSCX (PowerShell Community Extensions). &amp;nbsp;How would you modify this script to handle assemblies that belong to other snap-ins? &lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#6021852</link><pubDate>Fri, 09 Nov 2007 19:35:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6021852</guid><dc:creator>Heath Stewart</dc:creator><description>&lt;p&gt;Technically you're not updating the GAC. You're updating the Native Image Cache, or NIC. These are actually both foldered directly under %WINDIR%\assembly.&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#6485292</link><pubDate>Fri, 23 Nov 2007 17:47:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6485292</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;This script has an oversight and does not locate ngen correctly. It does not work properly since I have a _folder_ called &amp;quot;ngen.exe&amp;quot; located here: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\Bind Logs\ngen.exe\&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#6485995</link><pubDate>Fri, 23 Nov 2007 18:38:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6485995</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;Adding a filter for item length works better since you filter only files that way, and don't accidentally include bind log directories that are named ngen.exe:&lt;/p&gt;
&lt;p&gt;set-alias ngen @(dir -recurse (join-path ${env:\windir} &amp;quot;Microsoft.NET\Framework\&amp;quot;) ngen.exe | where {$_.length -gt 0} | sort -descending lastwritetime)[0].fullname&lt;/p&gt;
&lt;p&gt;[appdomain]::currentdomain.getassemblies() | %{ngen $_.location}&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#6518463</link><pubDate>Sun, 25 Nov 2007 19:27:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6518463</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;&amp;gt; since I have a _folder_ called &amp;quot;ngen.exe&amp;quot;&lt;/p&gt;
&lt;p&gt;I'm dying to know: &amp;nbsp;Why do you have a folder with an EXE name?&lt;/p&gt;
&lt;p&gt;Jeffrey Snover [MSFT]&lt;/p&gt;
&lt;p&gt;Windows Management Partner Architect&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell Team blog at: &amp;nbsp; &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/PowerShell"&gt;http://blogs.msdn.com/PowerShell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell ScriptCenter at: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx"&gt;http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8595294</link><pubDate>Sat, 14 Jun 2008 03:50:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8595294</guid><dc:creator>June Blender</dc:creator><description>&lt;p&gt;On Vista, you need to start Windows PowerShell with the &amp;quot;Run as administrator&amp;quot; option to run this successfully. &lt;/p&gt;
&lt;p&gt;When it fails, the output contains a bunch of &amp;quot;access denied&amp;quot; messages.&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8719248</link><pubDate>Fri, 11 Jul 2008 02:56:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8719248</guid><dc:creator>JaredReisinger</dc:creator><description>&lt;p&gt;This is a great bit of script. &amp;nbsp;I've shared this out with several people on my team, and it's resolved all of the &amp;quot;PowerShell is slow to start&amp;quot; comments.&lt;/p&gt;
&lt;p&gt;Can you say anything about whether this will still be useful/needed on PowerShell v2? &amp;nbsp;I understand wanting the installation to be responsive, but I'd rather wait an extra minute or two during the installation if it means that PowerShell starts more quickly the first time.&lt;/p&gt;</description></item><item><title>PowerShell speed-up script</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8719321</link><pubDate>Fri, 11 Jul 2008 03:22:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8719321</guid><dc:creator>Abstract Semantics</dc:creator><description>&lt;p&gt;Jeffrey Snover posted (back in November of 2007) a script that solves the &amp;quot;PowerShell starts slowly&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8719670</link><pubDate>Fri, 11 Jul 2008 05:22:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8719670</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;&amp;gt; Can you say anything about whether this will still be useful/needed on PowerShell v2?&lt;/p&gt;
&lt;p&gt;We will have the problem fixed in V2.&lt;/p&gt;
&lt;p&gt;Jeffrey Snover [MSFT]&lt;/p&gt;
&lt;p&gt;Windows Management Partner Architect&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell Team blog at: &amp;nbsp; &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/PowerShell"&gt;http://blogs.msdn.com/PowerShell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell ScriptCenter at: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx"&gt;http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Speeding Up PowerShell Startup</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8721088</link><pubDate>Fri, 11 Jul 2008 15:16:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8721088</guid><dc:creator>Windows PowerShell</dc:creator><description>&lt;p&gt;I talked about this before but a number of people have missed it so here it is under a better title.&lt;/p&gt;
</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8721590</link><pubDate>Fri, 11 Jul 2008 19:14:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8721590</guid><dc:creator>Bruce</dc:creator><description>&lt;p&gt;WOW - no real numbers but significant reduction in startup time&lt;/p&gt;</description></item><item><title>Fix PowerShell startup times with a PowerShell script</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8721926</link><pubDate>Fri, 11 Jul 2008 22:46:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8721926</guid><dc:creator>Rod Trent at myITforum.com</dc:creator><description>&lt;p&gt;Annoyed with how long PowerShell takes to startup?&amp;amp;#160; Run this script… &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/powershell"&gt;http://blogs.msdn.com/powershell&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8722470</link><pubDate>Sat, 12 Jul 2008 06:55:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8722470</guid><dc:creator>Mike Schinkel</dc:creator><description>&lt;p&gt;OMG! &lt;/p&gt;
&lt;p&gt;Slow startup times were actually my (only) ONE major complaint about PowerShell, though I assumed there was nothing you could do about it so I hadn't complained about it. &lt;/p&gt;
&lt;p&gt;WAY COOL! THANKS!&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8731530</link><pubDate>Mon, 14 Jul 2008 17:28:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8731530</guid><dc:creator>Shaun Cassells</dc:creator><description>&lt;p&gt;Great Script, &lt;/p&gt;
&lt;p&gt; &amp;nbsp;Be aware, you need administrator access on the workstation to complete the execution.&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8732388</link><pubDate>Tue, 15 Jul 2008 03:14:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8732388</guid><dc:creator>DM</dc:creator><description>&lt;p&gt;Don't forget that on x64 systems, you need to use &amp;quot;Microsoft.NET\Framework64&amp;quot; instead.&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8750358</link><pubDate>Fri, 18 Jul 2008 20:30:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8750358</guid><dc:creator>Jay Bazuzi</dc:creator><description>&lt;p&gt;Consider passing &amp;quot;/nologo&amp;quot; to ngen.exe, to reduce noise.&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8760594</link><pubDate>Mon, 21 Jul 2008 09:02:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8760594</guid><dc:creator>robby</dc:creator><description>&lt;p&gt;Great info (as always)!&lt;/p&gt;
&lt;p&gt;As I'm not a .NET-guy, where can I find some backgroud info on GAC, ... &lt;/p&gt;</description></item><item><title>Speeding Up PowerShell Startup</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8766168</link><pubDate>Wed, 23 Jul 2008 10:33:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8766168</guid><dc:creator>HyperVoria</dc:creator><description>&lt;p&gt;Jeffrey Snover [MSFT]: In V1, we had a problem which caused our assemblies to not get ngen&amp;amp;#39;ed during&lt;/p&gt;
</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8767977</link><pubDate>Thu, 24 Jul 2008 02:10:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8767977</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;I made a couple of tweeks to add detection of x86 and AMD64:&lt;/p&gt;
&lt;p&gt;Set-Alias ngen @(&lt;/p&gt;
&lt;p&gt;	$ngen_path = Join-Path ${env:\windir} &amp;quot;Microsoft.NET\Framework&amp;quot;&lt;/p&gt;
&lt;p&gt;	if(${env:PROCESSOR_ARCHITECTURE} -eq &amp;quot;AMD64&amp;quot;){&lt;/p&gt;
&lt;p&gt;		$ngen_path = Join-Path ${env:\windir} &amp;quot;Microsoft.NET\Framework64&amp;quot;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;	dir $ngen_path ngen.exe -recurse | where {$_.length -gt 0} | sort -descending lastwritetime	&lt;/p&gt;
&lt;p&gt;)[0].fullName&lt;/p&gt;
&lt;p&gt;[appdomain]::currentdomain.getassemblies() | %{ngen /nologo $_.location} &lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8768401</link><pubDate>Thu, 24 Jul 2008 05:26:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8768401</guid><dc:creator>Fred</dc:creator><description>&lt;p&gt;Can you use this to speed up Exchange Management Shell as well? As this always take a long time to load up!&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8769501</link><pubDate>Thu, 24 Jul 2008 19:09:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8769501</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Yes it does speed up the exchange managment shell. &amp;nbsp;it is still a little slow, but a major improvement.&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8770135</link><pubDate>Fri, 25 Jul 2008 00:22:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8770135</guid><dc:creator>EDF</dc:creator><description>&lt;p&gt;FANTASTIC! &amp;nbsp;Thank you!&lt;/p&gt;
&lt;p&gt;I tested on XPsp2 and Vista Ultimate sp1 - both with great success. &amp;nbsp;The above comments helped too.&lt;/p&gt;</description></item><item><title>More on Update-GAC (speeding up PowerShell startup)</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8772731</link><pubDate>Fri, 25 Jul 2008 22:10:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8772731</guid><dc:creator>Michael's meanderings...</dc:creator><description>&lt;p&gt;Jeffrey Snover of Microsoft, PowerShell dude extraordinaire, recently reminded us of a way to Speed Up&lt;/p&gt;
</description></item><item><title>PowerShell Startup</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8776942</link><pubDate>Sun, 27 Jul 2008 03:24:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8776942</guid><dc:creator>Richard Siddaway's Blog</dc:creator><description>&lt;p&gt;If you think your PowerShell startup is slow, or even if you think it is OK, follow the instructions&lt;/p&gt;
</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8801974</link><pubDate>Fri, 01 Aug 2008 23:34:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8801974</guid><dc:creator>Glen Martin</dc:creator><description>&lt;p&gt;Am I correct in assuming that this script, in order to retain its benefits, would need to be re-run after any update or patch to Exchange or the .NET Framework?&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8844734</link><pubDate>Sat, 09 Aug 2008 08:27:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8844734</guid><dc:creator>japanese</dc:creator><description>&lt;p&gt;see also&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://download.flamework.net/Install-NgenAssemblies.ps1"&gt;http://download.flamework.net/Install-NgenAssemblies.ps1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://flamework.net/archives/10"&gt;http://flamework.net/archives/10&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8858964</link><pubDate>Wed, 13 Aug 2008 18:44:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8858964</guid><dc:creator>Brian Reiter</dc:creator><description>&lt;p&gt;Error for System.Data.dll on x64 PowerShell.&lt;/p&gt;
&lt;p&gt;For some reason ngen always fails to comile a native image of System.Data.dll on PowerShell x64. Here's the relevant message.&lt;/p&gt;
&lt;p&gt;Microsoft (R) CLR Native Image Generator - Version 2.0.50727.3053&lt;/p&gt;
&lt;p&gt;Copyright (c) Microsoft Corporation. &amp;nbsp;All rights reserved.&lt;/p&gt;
&lt;p&gt;Installing assembly C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll&lt;/p&gt;
&lt;p&gt;Failed to find dependencies of image C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll be&lt;/p&gt;
&lt;p&gt;cause this image or one of its dependencies is not a valid Win32 application.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Compiling assembly C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll ...&lt;/p&gt;
&lt;p&gt;Error compiling C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll: An attempt was made to&lt;/p&gt;
&lt;p&gt; load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)&lt;/p&gt;
&lt;p&gt;Uninstalling assembly C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll because of an err&lt;/p&gt;
&lt;p&gt;or during compilation.&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx#8888667</link><pubDate>Fri, 22 Aug 2008 22:48:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8888667</guid><dc:creator>Josh Einstein</dc:creator><description>&lt;p&gt;There's a pretty easy way to get the framework path. I noticed some commenters trying to make it find the right version of ngen or what not...&lt;/p&gt;
&lt;p&gt;$FrameworkPath = [System.IO.Path]::GetDirectoryName([Object].Assembly.Location)&lt;/p&gt;
&lt;p&gt;$NgenPath = [System.IO.Path]::Combine($FrameworkPath, &amp;quot;ngen.exe&amp;quot;)&lt;/p&gt;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/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;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/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</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;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/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;</description></item><item><title>Speed up PowerShell</title><link>http://blogs.msdn.com/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;
</description></item><item><title>Speed up Powershell V2?</title><link>http://blogs.msdn.com/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;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/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>PowerShellTeam</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;
</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/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;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/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;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/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;</description></item><item><title>re: Update-Gac.ps1</title><link>http://blogs.msdn.com/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;</description></item></channel></rss>