Controlling automatic importing with PSDisableModuleAutoLoading
Votes from Connect: 10
Original Date Submitted: 12/30/2011 6:54:11 PM
Handle: Shay Levi
Site Name: PowerShell
Feedback ID: 716021
Frequency: Always Happens
Regression: No, this is new to the most recent version
In PowerShell 3.0 CTP2 we can configure how automatic importing works by using the PSDisableModuleAutoLoading environment variable. However, when we launch a fresh instance of PowerShell, the variable is not present in the Env: drive which makes it very hard to discover.
One has to know the variable name in advance in order to set its value.
I suggest to include the variable in the Env: drive so it can be easily discovered using auto completion:
Product Studio item created by Connect Synchronizer due to creation of feedback ID 716021 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=716021).
Internal BugId: 3254