{"id":5741,"date":"2008-07-11T08:10:00","date_gmt":"2008-07-11T08:10:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2008\/07\/11\/speeding-up-powershell-startup\/"},"modified":"2019-02-18T13:13:07","modified_gmt":"2019-02-18T20:13:07","slug":"speeding-up-powershell-startup","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/speeding-up-powershell-startup\/","title":{"rendered":"Speeding Up PowerShell Startup"},"content":{"rendered":"<p>I talked about this before but a number of people have missed it so here it is under a better title.&nbsp; <\/p>\n<p>In V1, we had a&nbsp;problem which caused our assemblies to not get ngen&#8217;ed during installation.&nbsp; If you don&#8217;t know what &#8220;ngen&#8221; is, don&#8217;t worry &#8211; you don&#8217;t need to.&nbsp; All you need to know is that we didn&#8217;t do the step that makes things go fast on your machine.&nbsp; The instructions for how to fix this are <a class=\"\" href=\"http:\/\/blogs.msdn.com\/powershell\/archive\/2007\/11\/08\/update-gac-ps1.aspx\">HERE<\/a>.<\/p>\n<p>You should stop what you are doing and go run that script.&nbsp; If you&#8217;ve already done this in the past, it will be harmless but if you haven&#8217;t, you&#8217;ll be amazed at the improvement in startup times.&nbsp; Please tell all your friends to do this as well.&nbsp;&nbsp; A lot of people don&#8217;t know about it and have a bad opinion about PowerShell startup times.&nbsp; After people run it, the typical reaction is, &#8220;WOW!&#8221;.<\/p>\n<p>&nbsp;Cheers!<\/p>\n<p>Jeffrey Snover [MSFT]<br \/>Windows Management Partner Architect<br \/>Visit the Windows PowerShell Team blog at:&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at:&nbsp; <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I talked about this before but a number of people have missed it so here it is under a better title.&nbsp; In V1, we had a&nbsp;problem which caused our assemblies to not get ngen&#8217;ed during installation.&nbsp; If you don&#8217;t know what &#8220;ngen&#8221; is, don&#8217;t worry &#8211; you don&#8217;t need to.&nbsp; All you need to know [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[240,248],"class_list":["post-5741","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-performance","tag-powershell"],"acf":[],"blog_post_summary":"<p>I talked about this before but a number of people have missed it so here it is under a better title.&nbsp; In V1, we had a&nbsp;problem which caused our assemblies to not get ngen&#8217;ed during installation.&nbsp; If you don&#8217;t know what &#8220;ngen&#8221; is, don&#8217;t worry &#8211; you don&#8217;t need to.&nbsp; All you need to know [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/5741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=5741"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/5741\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=5741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=5741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=5741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}