{"id":4132,"date":"2013-02-20T11:59:00","date_gmt":"2013-02-20T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2013\/02\/20\/powertip-turn-off-powershell-module-autoload\/"},"modified":"2013-02-20T11:59:00","modified_gmt":"2013-02-20T11:59:00","slug":"powertip-turn-off-powershell-module-autoload","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-turn-off-powershell-module-autoload\/","title":{"rendered":"PowerTip: Turn Off PowerShell Module Autoload"},"content":{"rendered":"<p><strong style=\"font-size: 12px\">Summary:<\/strong><span style=\"font-size: 12px\">&nbsp;Learn how to turn off Windows PowerShell module auto-loading.<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>&nbsp;I want to disable the Windows PowerShell&nbsp;3.0 module automatic loading of modules. How do I do this?<\/p>\n<p style=\"padding-left: 60px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>&nbsp;Set the value of the&nbsp;<strong>$PSModuleAutoloadingPreference<\/strong>&nbsp;automatic variable to&nbsp;<strong>none<\/strong>, as shown here.<\/p>\n<p style=\"padding-left: 120px\">$PSModuleAutoloadingPreference = &#8220;none&#8221;<\/p>\n<p style=\"padding-left: 90px\"><strong>Note<\/strong>&nbsp;&nbsp;&nbsp;I do not recommend you make this change except in very specific situations and for very specific reasons. The number of Windows PowerShell cmdlets and functions in Windows Server&nbsp;2012 and Windows 8 would make knowing which module a particular command resided in extremely difficult; with this change in place, you have to specifically load the module prior to using any commands.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary:&nbsp;Learn how to turn off Windows PowerShell module auto-loading. &nbsp;I want to disable the Windows PowerShell&nbsp;3.0 module automatic loading of modules. How do I do this? &nbsp;Set the value of the&nbsp;$PSModuleAutoloadingPreference&nbsp;automatic variable to&nbsp;none, as shown here. $PSModuleAutoloadingPreference = &#8220;none&#8221; Note&nbsp;&nbsp;&nbsp;I do not recommend you make this change except in very specific situations and for very [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[362,356,3,45],"class_list":["post-4132","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-powershell-3","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary:&nbsp;Learn how to turn off Windows PowerShell module auto-loading. &nbsp;I want to disable the Windows PowerShell&nbsp;3.0 module automatic loading of modules. How do I do this? &nbsp;Set the value of the&nbsp;$PSModuleAutoloadingPreference&nbsp;automatic variable to&nbsp;none, as shown here. $PSModuleAutoloadingPreference = &#8220;none&#8221; Note&nbsp;&nbsp;&nbsp;I do not recommend you make this change except in very specific situations and for very [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/4132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=4132"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/4132\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=4132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=4132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=4132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}