Please feel free to provide feedback or file bugs here.

Import-Module with -Name parameter breaks PowerShell ISE in WMF 5.0 April Preview

Votes from Connect: 10

Original Date Submitted: 5/19/2015 8:46:17 PM

Description:
********Contact Information********
Handle: azhskr
Site Name: PowerShell
Feedback ID: 1347198
***************************************

Frequency: PowerShell ISE
Regression: Launch PowerShell ISE as either Administrator or non-Administrator
Get-Service BITS
Import-Module "Module Name"
Get-Module "Module Name"
Get-Service BITS
Remove-Module "Module Name"
Import-Module -Name "Module Name"
Get-Module -Name "Module Name"
Get-Module "Module Name"
Get-Service BITS

Problem Description:
Using Import-Module -Name "Module Name" imports the module, but breaks all output in the ISE. Using Import-Module "Module Name" imports the module and doesn't affect the output.

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

Repro Steps:
Launch PowerShell ISE as either Administrator or non-Administrator
Get-Service BITS
Import-Module "Module Name"
Get-Module "Module Name"
Get-Service BITS
Remove-Module "Module Name"
Import-Module -Name "Module Name"
Get-Module -Name "Module Name"
Get-Module "Module Name"
Get-Service BITS

Expected Results:
Using Import-Module with the name parameter should not break all output into the ISE console. The only way to fix it is to close and reopen the ISE.

Internal BugId: 14487

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