PowerShell

The PowerShell forum accepts bug reports as well as feedback and suggestions. For more information, check out the PowerShell Homepage

The following is a list of the states we use to track items.

status meaning
survey We saw this and we are considering it. Please upvote if it’s important to you.
needs more information We don’t understand the issue and need additional details.
investigating We are looking at this internally to understand things like: scenario, reproduction of issue, costing, or other technical details.
in queue The issue is understood and in our unprioritized backlog. Your votes will be used to drive prioritization of this work.
  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. BUG: ISE Preview - Show-Command

    On both my Windows 10 boxes, Show-Command does not work in the ISE Preview. It gives the following error:

    Show-Command : [A]System.Collections.Generic.List1[Microsoft.PowerShell.Commands.ShowCommandExtension.ShowCommandCommandInfo] cannot be cast to
    [B]System.Collections.Generic.List
    1[Microsoft.PowerShell.Commands.ShowCommandExtension.ShowCommandCommandInfo]. Type A originates from 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location
    'C:\WINDOWS\Microsoft.Net\assembly\GAC64\mscorlib\v4.04.0.0.0b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location
    'C:\WINDOWS\Microsoft.Net\assembly\GAC64\mscorlib\v4.04.0.0.0
    b77a5c561934e089\mscorlib.dll'.
    At line:1 char:1
    + Show-Command
    + ~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Show-Command], InvalidCastException
    
    + FullyQualifiedErrorId : System.InvalidCastException,Microsoft.PowerShell.Commands.ShowCommandCommand

    Thanks for looking.

    7 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  2. ISE 5.1.1 Preview crashes and restarts but doesn't generate $env:APPDATA\PowerShell_ISE_Crash_Log.txt

    I just had a number of crashes in ISEP while editing code. Each time, ISEP restarted, but no $env:APPDATA\PowerShellISECrash_Log.txt was generated

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  3. ISE Preview: USB drive shows up twice in Get-PSDrive

    This should speak for itself:

    PS C:/tmp> get-psdrive -name 'I'

    Name Used (GB) Free (GB) Provider Root CurrentLocation


    i 52.88 5.99 FileSystem i:\ BUILD 2016
    I 52.88 5.99 FileSystem I:\

    Maybe this is related to inserting the USB key while ISEP was running?

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  4. PowerShell ISE - Pane breakout for multi monitor use

    Votes from Connect: 23

    Original Date Submitted: 10/31/2011 9:54:18 PM

    Description:
    Contact Information
    Handle: FuriouS76
    Site Name: PowerShell
    Feedback ID: 698161


    Frequency: Always Happens
    Regression: Yes, this happens in all previous versions

    Problem Description:
    I have tried many of the IDE/ISE options out there and prefer Windows ISE. The one feature I would like to see is the ability to undock or break out each pane across multiple monitors. This would allow users in multi-monitor setups to configure the ISE in an ideal setup that would allow faster coding / debugging.

    Thanks,
    Kirk Hammond.

    Product Studio item created by Connect…

    57 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    5 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →

    This is a very difficult thing to implement, it could potentially break many of the add-ons, and could introduce some very confusing UI elements.

    That said, we’re interested to get more ideas from you for how something like this might work. Feel free to post your comments below.

    Thanks,
    Joey

  5. Provide a mechanism to translate Comment based help into editable MAML

    I have a bunch of functions documented via Comment Based Help. I'd like to be able to automatically turn these into MAML

    4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  6. PRB: out-lineoutput : Unable to perform host dependent operation.

    Under some undetermined circumstances, the ISE (RTM or Preview) aborts the execution of the current script with the following error:

    out-lineoutput : Unable to perform host dependent operation.

    + CategoryInfo          : NotSpecified: (:) [out-lineoutput], InvalidOperationException
    
    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.Out

    LineOutputCommand

    Restarting the script usually works, but can fail some time later.

    Any clue?

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  7. Bug: String parameter with null as default: Different behavior if debugged!

    Function Test-StringDefaultParameter {

    Param (
    
    [String] $Str = [System.Management.Automation.Language.NullString]::Value
    )

    if ($Null -eq $Str) {
    Write-Host "Str is null"
    } else {
    Write-Host "Str is '$Str'"
    }

    }

    When debugging above function (that is just placing a breakpoint in it somewhere in Powershell ISE) then calling 'Test-StringDefaultParameter' without any parameter behaves as expected! (printing out 'Str is null'!).
    Not so though, if there is no breakpoint set! Then 'Str is ''' get printed on the console!

    This happens (at least) with Powershell 5 on Windows 7 64 bit.

    PS C:\Users\peh> Get-Host

    Name : Windows PowerShell ISE Host
    Version : 5.0.10586.117 …

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  8. Bug in ISE Preview 5.1.1

    Hi Folks,

    I'm running ISE Preview 5.1.1 downloaded from the PowerShell Gallery. When I hit the 'Show Command Window' button in the menu bar (or type show-command) I get this error.

    PS Library:> show-command
    show-command : [A]System.Collections.Generic.List1[Microsoft.PowerShell.Commands.ShowCommandExtension.ShowCommandCommandInfo]
    cannot be cast to [B]System.Collections.Generic.List
    1[Microsoft.PowerShell.Commands.ShowCommandExtension.ShowCommandCommandInfo].
    Type A originates from 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at
    location 'C:\Windows\Microsoft.Net\assembly\GAC64\mscorlib\v4.04.0.0.0b77a5c561934e089\mscorlib.dll'. Type B originates from
    'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location
    'C:\Windows\Microsoft.Net\assembly\GAC64\mscorlib\v4.04.0.0.0
    b77a5c561934e089\mscorlib.dll'.
    At line:1 char:1
    + show-command
    + ~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Show-Command], InvalidCastException
    
    + FullyQualifiedErrorId : System.InvalidCastException,Microsoft.PowerShell.Commands.ShowCommandCommand

    I'm running…

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  9. Clean up formatting

    As many of us share and use snippets from other sources, including the Internet, colleagues etc. sometimes their formatting is destroyed in the copy/paste process or is already destroyed due to a change in a website template for example.
    While it's a "nice to have" feature, being able to clean up the formatting (using proper indentation, parentheses spacing etc.) for selected blocks of code would get the code in to a more readable format more quickly.

    While everyone formats their code differently, having a few selctable methods of cleaning up would be beneficial such as:
    -Keep opening parentheses on same…

    8 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  10. I can search a script but can not search in the output panel.

    I can search a script but can not search in the output panel. Search should work in which ever panel I have selected.

    4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  11. Out-GridView fails to display data for properties starting or ending with whitespace characters.

    Out-GridView fails to display data for properties starting or ending with whitespace characters.

    Problem description:
    I find this problem usually when loading csv files or other data source in powershell and then during working with the data I sometimes get empty columns in Out-GridView. I found that a blank as the first or last character of a property name will make Out-GridView display the column name but the rows data are not being shown.

    Steps to reproduce:
    $data = 1..10 | ForEach-Object {

    New-Object -TypeName PSCustomObject -Property @{"NormalColumn" = "Normal$_"; " ThisDoesNotDispayData" = "Hidden$_"; "NeitherDoesThis " = "AlsoHidden$_"}
    

    }
    $data…

    4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  12. Options menu : Have an options for code folding

    Have a new item in the Script Pane Behavior section on the
    General settings of the Options menu.

    "Code fold on open"

    what this means is when you open a script or Module file it will fold all the code in the Script pane so you can view all the functions at a high level and not see any code, and then you could expand a function to view the code in more detail.

    5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  13. Enable ISE editor so a URL can ne CTRL+ Right Mouse Clicked and launched in the browser

    For example, Visual Studio Code (and Visual Studio), detect URLs in the code and let you click on them which launches the browser and navigates to that link.

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  14. Write-Progress output is not displayed properly when multiple ISE tabs are open in PowerShell 3.0

    Votes from Connect: 11

    Original Date Submitted: 2/6/2013 3:35:55 AM

    Description:

    Contact Information
    Handle: DougBB
    Site Name: PowerShell
    Feedback ID: 778597


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

    Problem Description:
    Under certain circumstances, when Write-Progress is used in Windows PowerShell ISE and a new tab is opened, the Write-Progress output does not display properly. Closing tabs makes it appear.

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

    Repro Steps:
    1. Run "powershell_ise.exe -noprofile"
    2. Paste the following code in the script pane:

    $i = 1..100
    
    33 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    7 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  15. ISE: Add support for "Copy Full Path" context menu command on script tabs

    I often need the path name to the file I'm editing. In V3 I can hover the mouse over the tab and a tooltip will present the path. However, I usually need to provide this path to other commands (like cd or paste them into another window), and I currently have to hand-repeat it.

    Right-Click on tab -> Copy Full Path is a great way to solve this; it's the same approach used by Visual Studio.

    24 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  16. ISE hangs after using a Windows Forms dialog

    Votes from Connect: 12

    Original Date Submitted: 4/4/2015 8:50:49 AM

    Description:
    Contact Information
    Handle: Arnoud Jansveld
    Site Name: PowerShell
    Feedback ID: 1224213


    Frequency: PowerShell ISE
    Regression: function Show-Form
    {

    [reflection.assembly]::LoadWithPartialName("System.Windows.Forms") >$null
    
    $form = New-Object System.Windows.Forms.Form
    $label = New-Object System.Windows.Forms.Label
    $label.Text = "Please close this form"
    $label.AutoSize = $true
    $form.Controls.Add($label)
    $form.ShowDialog()

    }

    $result = Show-Form

    Workaround (slow):

    $result = Start-Job ${function:Show-Form} | Receive-Job -Wait -AutoRemoveJob

    "Form result: " + $result.ToString()

    Write-Warning "The following step may hang PowerShell ISE, save your work!"
    Read-Host -Prompt "Hit Enter or Ctrl-C to abort"

    This generates a WM_SETTINGCHANGE broadcast message

    Problem Description:
    After using ShowDialog() to…

    29 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  17. Out-GridView needs a -DisplayProperty parameter

    Votes from Connect: 42

    Original Date Submitted: 4/10/2015 11:19:28 PM

    Description:
    Contact Information
    Handle: Trevor Sullivan [MVP]
    Site Name: PowerShell
    Feedback ID: 1238786


    Problem Description:
    The Out-GridView command displays all of the properties of each object that is fed into it. Consequently, in order to make the tool more usable, the Select-Object command can be used to inclusively filter the key properties of each object, to display to the end user. Unfortunately, this process results in a modified object, that cannot be used for all intended purposes.

    Instead of using Select-Object, a -DisplayProperty parameter should be added to Out-GridView, so…

    30 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  18. Write-Error output posted to current active ISE tab

    When a Write-Error output is used with multiple powershell tabs in the ISE it is automatically posted to the currently active tab regardless of which tab it originated from.

    This was tested with the following command:

    1..20 | % {if ($ % 2) { start-sleep -s 2; write-output $} else {start-sleep -s 2; write-Error $_}}

    And across 3 different tabs in the same ISE.

    While it seems useful behaviour to have a script report errors to the currently active tab, it then can cause problems when trying to actually debug those errors when switching back and forth between tabs…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  19. ISE: Dark editor theme is very buggy

    I like using a black background with white text, but this is very buggy. Even the built in "Dark Console, Dark Editor" theme is very buggy.

    These are some of the issues I run into:


    • Mouse-over foldable sections is broken. If you mouse over a folable section, it turns into having a white background and the text is unreadable.

    • Sometimes when you mouse over a foldable section, it doesn't "unhighlight" afterwards. You have to mouse over it again to get its state to reset.

    • Folding icons are not legible when un-folded. The "-" within the square is dark gray which…
    5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  20. Move ISE add-ons to Powershellgallery

    ISE links currently to the ""Add-on Tools Website (http://social.technet.microsoft.com/wiki/contents/articles/2969.windows-powershell-ise-add-on-tools.aspx).

    Automated installation with a PSRepository (like Powershellgallery) would be nice.

    5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base