Please feel free to provide feedback or file bugs here.

Controlling automatic importing with PSDisableModuleAutoLoading

Votes from Connect: 10

Original Date Submitted: 12/30/2011 6:54:11 PM

Description:
********Contact Information********
Handle: Shay Levi
Site Name: PowerShell
Feedback ID: 716021
***************************************

Frequency: Always Happens
Regression: No, this is new to the most recent version

Problem Description:
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:

$env:PS<tab>

Product Studio item created by Connect Synchronizer due to creation of feedback ID 716021 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=716021).

Repro Steps:
Expected Results:

Internal BugId: 3254

1 vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    AdminJoey Aiello [MSFT] (Program Manager, Windows Server) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base