Summary: Learn how to turn off Windows PowerShell module auto-loading.
I want to disable the Windows PowerShell 3.0 module automatic loading of modules. How do I do this?
Set the value of the $PSModuleAutoloadingPreference automatic variable to none, as shown here.
$PSModuleAutoloadingPreference = “none”
Note 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 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.
0 comments