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. Powershell reacts to Lithuanian 9 and 0 in a wrong way starting Windows 1809

    It's not an idea, it's a bug.

    Lithuanian keyboard is known to use the right Alt as AltGr.

    As a top keyboard row in the Lithuanian keyboard layout is Lithuanian characters, holding AltGr allows all the top row to become an English US keyboard again.

    This way, holding AltGr enables to type numbers: 1, 2, 3, 4, 5, 6, 7, 8, 9, 0. But not in Powershell, that ships with Windows 1809. Be it Windows Server 2019 1809, or Windows 10 1809.

    Starting with this Powershell, typing AltGr+9 and AltGr+0 does nothing and this is wrong.

    Typing numbers in Powershell…

    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 →
  2. BUG: [System.Windows.Forms.SystemInformation]::PrimaryMonitorSize returns display size inconsistently between PS and PS ISE

    Reproducibility: always.

    1) Set display scaling not at 100%
    2) Start new PS and PS ISE sessions
    3) Run:
    Add-Type -AssemblyName System.Windows.Forms
    4) Notice difference when running in PS ISE to PS standard

    PS ISE takes no notice of display scaling and reports screen resolution. PS does take notice of display scaling and reports virtual screen resolution, e.g. 1920x1080 for a 3840x2160 screen with 200% scaling.

    $PSVersionTable:
    PSVersion 5.1.18362.145
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.18362.145
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    Windows 10 Pro v1903 OS Build 18362.418

    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. Is anyone here aware of any tools that can help with automated naming conventions validation?

    Is anyone here aware of any tools that can help with automated naming conventions validation?

    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. Bug?: The Powershell call operator breaks my ISE

    Hello Community

    I hope that i have finally hit the correct place to post my question, since i have been unable to find it so far. Here is my situation:

    I have been developing a Powershell script using Powershell ISE, and for the most part i am very happy about it, however i have encountered what i believe to be a bug in the call operator (&).

    When i use the call operator followed by a "pure" string everything works as it should, the command works and ISE runs as usual, but when i use the call operator followed by…

    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 →
  5. after you install server role on server 2016, configure the internal servernetwork interface and the external server network interface to us

    module doesnot seem to agree with the command.

    set-dnsclientserveraddress -interfacealias internal -serveraddress 127.0.0.1
    set-dnsclienserveraddress -interfacealias externalnat -serveraddress 127.0.0.1

    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 →
  6. Bug: powershell ISE theme, Set the color for control panel/Text Background is useless

    Set the color for control panel/Text Background is useless, whatever you set, it stil the default color(Red:1,Green:36, Blue:86).

    there are 3 items regarding the ConsolePane and 2 items regarding the ScriptPane for editing theme. I am not sure "ConsolePaneTextBackgroundColor" is needed as "ConsolePaneBackgroundColor" is existed.

    My understanding is when we edit color for ConsolePane, we need to make sure "ConsolePaneBackgroundColor" and "ConsolePaneTextBackgroundColor" the same, in order to aligned, but it is work for other color. only the default color(Red:1,Green:36, Blue:86) works.

    <string>ConsolePaneBackgroundColor</string>
    <string>ConsolePaneForegroundColor</string>
    <string>ConsolePaneTextBackgroundColor</string>

    <string>ScriptPaneBackgroundColor</string>
    <string>ScriptPaneForegroundColor</string>

    please find my version information below.

    PS C:\WINDOWS\system32> $PSVersionTable

    Name Value


    PSVersion 5.1.16299.1146
    PSEdition…

    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 →
  7. shortcut

    Can ise support change keyboard shortcut?
    The intellisense key 'ctrl + space ' is conflict with my input method, which language is not english.

    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 →
  8. powershell ISE crashes when module manifest nested module is itself

    If you define a module manifest where the nested modules has the current module, ISE terminates.

    Here is an example manifest:
    @{
    RootModule = 'Acme.MyApp.Install.psm1'
    ModuleVersion = '1.0'
    GUID = 'c2419ceb-c2ef-4d2c-bb1d-6ec6de24ab86'
    Author = 'Justin Marshall'
    CompanyName = 'Acme'
    RequiredModules = @('Acme.Common.Misc', 'Acme.Common.WinForms', 'Acme.MyApp.Admin', 'Acme.Common.XMLXSL')
    NestedModules = @('Acme.MyApp.Install')
    FunctionsToExport = ''
    CmdletsToExport = '
    '
    VariablesToExport = ''
    AliasesToExport = '
    '
    FileList = @('Acme.MyApp.Install.psm1')

    }

    this same module loads fine in powershell console.

    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 →
  9. Saving file in the remote session has failed with error: Exception has been thrown by the target of an invocation..

    Since a few weeks, when I edit a file in a PSSession in ISE I get this error message when I save the modifications:

    Saving file: C:\path\file.ps1 in the remote session has failed with error: Exception has been thrown by the target of an invocation..

    Not sure there is a link, but this problem appeared around the moment when this post has been published.

    https://devblogs.microsoft.com/powershell/windows-security-change-affecting-powershell/

    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 →
  10. PowerShell ISE CurrentPowerShellTab AddFile focus not on the editor pane

    When running ISE commands like $psISE.CurrentPowerShellTab.Files.Add(...) to open a new script file in ISE the focus should be in the editor pane.
    However, with the Windows update of Windows 10 Pro (1803) 10.0.17134 when a file is opened using $psISE.CurrentPowerShellTab.Files.Add(…) the focus is not on the editor window of the file but the ISE editor tab. Why has this changed?

    This is extremely annoying since we now have to refocus the cursor on to the editor windows before typing or selecting a command to run.

    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 →
  11. Support line-wrapping in the ISE console pane

    It would be great if lines would automatically wrap in the console pane of the Integrated Scripting Environment (ISE), just like they do in the Powershell console.

    Currently, if the PowerShell ISE console pane is not wide enough, one has to scroll horizontally to see the beginning of the currently edited line.

    One workaround is to use the backtick (`) character to split the command in multiple lines but this is not very practical.

    Here are some examples of other people wanting to do this:
    [2015] https://superuser.com/questions/871178/line-wrapping-in-powershell-ise-console
    [2015] https://stackoverflow.com/questions/30710740/powershell-ise-console-window-command-line-word-wrap

    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 →
  12. Bug: PowerShell ISE 'The handle is invalid'

    Bug: PowerShell ISE 'The handle is invalid'

    Custom C# binary module works without issue via Powershell.exe, but when attempting to run the exposed cmdlets via Powershell_ise.exe you immediately get an error 'The handle is invalid' and the execution fails.

    When attaching Visual Studio to the ISE process to attempt debugging, it informs you that the failure occurs outside of the code base (not part of the managed code).

    Have this issue on Windows 10 / Server 2016 with Powershell 5.0 and 5.1.

    Mirrored the Powershell.exe.config to Powershell_ise.exe.config to rule out a configuration issue, and that yields no deltas.

    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 →
  13. PowerShell ISE crashes after latest Windows Update

    PowerShell ISE crashes after installation of the latest Security and Quality Rollup:

    2018-01 Security and Quality Rollup for .NET Framework 3.5.1, 4.5.2, ... on Windows 7 (KB4055532)

    After trying to instantiate the PowerShell ISE, the OS informs the following:

    powershell_ise has stopped working.
    A problem caused the program to stop working correctly.
    Windows will close the program and notify you if a solution is available.

    This is happening since January, 9, 2018.

    PowerShell on Console is still working properly.

    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 →
  14. Add spelling correction to ISE when writing strings

    Can you make ISE use some spelling correction when editing a string? Better, use MS Word's engine which can detect grammatical mistakes!

    This will save a lot of embarrassment!

    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 →
  15. Powershell ISE crashes when saving an ini file (I tried config.ini)

    I created a new file, saved as config.ini, and then ISE crashed. When I reopened, it crashed again.

    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 →
  16. Bug: Powershell ISE recovered to wrong integrity level in two sessions

    A crashed powershell ISE session will re-open previously open files.

    There is a bug, though, which manifested when a crash recovery happened to me recently:

    The session/file which I had originally opened in standard user context (no elevation) recovered in High integrity level (aka elevated/admin),
    The session/files which I had originally opened in elevated mode recovered in Medium integrity level (aka standard user mode).

    The session should remember which context it was open in and re-open in the same context.

    Need to consider this issue for normal ISE closure/re-opening, too, as in this UserVoice item:

    "Windows PowerShell ISE: Add ability…

    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 →
  17. Remove-ISESnippet

    There should be a cmdlet that reverses the Import-Snippet cmdlet. Properties that could be used to identify the snippet to remove (from current ISE session): DisplayTitle, FullPath, or Module.

    It would also be nice to expose an Unload method in the ISESnippetObject and ISESnippetCollection objects.

    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 →
  18. Copy with chinese string code from ise,paste it into WORD 2016,garbled

    【Bug to reproduce】
    Copy with chinese string code from powerGUI,paste it into word 2016,normal.
    Copy with chinese string code from ise,paste it into word 2016,garbled.


    $a = 1
    $b = "字符串"

    汉字乱码


    【old report link】
    https://connect.microsoft.com/PowerShell/Feedback/Details/2002528

    【powershell version】
    ise in windows 8.1
    ise in windows 10 14393.1066

    microsoft office 2016

    microsoft office 2013

    【reason】
    unknown

    【reporter】
    By the chinese powershell study & research group. QQ group No. is 183173532

    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. Export-ISEState options

    Export-ISEState should have the ability to 'Save current tab', 'Save specific tabs' and 'Save all tabs'

    Default should remain 'Save all tabs'

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

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  20. ISE Run in isolated console

    PowerGUI has a Run in External PowerShell Window feature, which executes the code externally, allowing parameters to be passed in, and eliminating some of the ISE quirks when testing code.
    I think have this option (along with customizable bracket shading) would be a great ISE feature.

    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 →
  • Don't see your idea?

Feedback and Knowledge Base