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.

Please feel free to provide feedback or file bugs here.

(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. Powershell ISE win10 1803 Cursor swaping panes on run

    Since windows 10 1803 when running a script from the script pane, the cursor switches from the script pane to the console pane.

    To reproduce: Open powershell ise on windows 10 1803. Enter in a basic script (ex: Write-Host "test") and hit F5. The cursor will move to the console pane so if you start typing the output will be in the console pane.

    The expected behavior would be to leave the cursor in the script pane so that you can continue to edit the script. This was the behavior previous to windows 10 1803.

    24 votes
    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

      3 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
    • 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

        0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
      • Parameter name expansion

        Allow abbreviated parameter names (automatically based on first letter for each word in the parameter's name) that expand when tab is pressed. For example,

        Get-NetIpAddress -IA -> would expand to Get-NetIpAddress -InterfaceAlias
        Get-NetIpAddress -II -> would expand to Get-NetIpAddress -InterfaceIndex

        This would help speed up parameter entry when one or more parameters start with the same word(s)

        2 votes
        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

          0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
        • Add-AppxPackage (Chef, WinRM) - Errors - Message: Contact Microsoft Customer Support Services

          Sorry if this is the wrong place, I created an issue https://github.com/chef/chef/issues/7765 but I am not sure its an issue with Chef.
          I have also created an issue https://github.com/PowerShell/PowerShell/issues/8148 .
          I am not very familiar with Powershell sorry, so I am unable to replicate without Chef (If I knew how it would be handy to try and replicate with pure WinRM).

          Steps to reproduce
          ------------------
          In Chef
          ```powershell
          cd C:/Test
          Add-AppxPackage Example_1.0.0.0_x64.appx -DependencyPath "Dependencies\\x64\\A.appx","Dependencies\\x64\\B.appx","Dependencies\\x64\\C.appx"
          ```
          This is trying to install an appx for a standard user. I believe Chef uses WinRM to run the commands.

          Expected behavior
          -----------------
          ```
          App…

          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

            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
          • miracle transition of stocks and products

            The existing of miracles object as the user request for.

            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

              0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
            • No paid modules in the module repository

              I recently posted this on TechNet, and was directed here...

              I couldn't remember how many times I've heard Jeffrey Snover talk about the experience that the Powershell team are after being one where you can start at a PS prompt and find and finish everything you need.

              First, great job, because it is actually shaping up to an environment that is just that. However, I just ran in to something that made me curse out loud alone in my office, and I want to believe that the majority of the community will be with me on this.

              I started, as…

              5 votes
              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

                1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
              • Powershell ISE ability to mark line(s) for review

                Hi All,

                I've searched for this, but I don't believe it's currently possible:

                I'd like the ability to mark a line or lines of code for review later on and an ability to filter my script to show only marked lines and an ability to quick jump to marked lines.

                To give a scenario: We have a number of PS scripts in the 1000+ line region for configuration of various Applications. As we move from one version of said application to another, we review the PS script - modifying it to meet current business requirements or changing work-around scripts to…

                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

                  0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                • New-SmbShare -Whatif not working

                  New-SmbShare with -Whatif switch NOT working, it runs the command instead of showing the whatif massage

                  Test with vscode insider

                  Name Value
                  ---- -----
                  PSVersion 5.1.17134.228
                  PSEdition Desktop
                  PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
                  BuildVersion 10.0.17134.228
                  CLRVersion 4.0.30319.42000
                  WSManStackVersion 3.0
                  PSRemotingProtocolVersion 2.3
                  SerializationVersion 1.1.0.1

                  2 votes
                  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

                    1 comment  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                  • Bug: Invoke-WebRequest keeps downloading beyond the file's size

                    Migrated from here: https://github.com/PowerShell/PowerShell/issues/7822.

                    To repro:

                    powershell wget https://storage.googleapis.com/chrome-infra/depot_tools.zip

                    The file size is ~19MB, but the download progress goes way beyond that and has to be manually stopped.

                    At the same time, (New-Object System.Net.WebClient).DownloadFile() works correctly.

                    2 votes
                    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

                      0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                    • [BUG] dismount-vhd

                      > dismount-vhd -disknumber X

                      This command is only observed to work on my machine if the path to the vhd does not have a space in it.

                      For example:
                      > mount-vhd -path C:\User\No\Spaces\In\Path\win10.vhd
                      > # do stuff, check diskpart which shows mount index is 1
                      > dismount-vhd -disknumber 1
                      > # Success!
                      > mount-vhd -path "C:\Bad User\Who Likes\Spaces\Win 10.vhd"
                      > # do stuff, check diskpart which shows mount index is 1
                      > dismount-vhd -disknumber 1
                      > # AG! NO!! Fails...
                      > "Windows cannot find a mounted virtual hard disk with the specified disk number"
                      > # Also, diskpart still shows…

                      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

                        0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                      • Online HELP no longer has any valid links.

                        Recently the new "docs"" site was implemented on MS. The old TechNet and MSDN PowerSHell help documentation is now buried and hard to access. The new help is no longer linked to any help for an CmdLet. We get "404" for all attempts.

                        Also the new doc style is very pretty but not very useful. Same for the new Net class browser. On both the documentation is incomplete and has many errors compared to the original documentation.

                        Please address this as using the documentation has become a nightmare. MS needs to go back to managing this directly and try and…

                        2 votes
                        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

                          0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
                        • List which module contains which CmdLets.

                          I am trying to figure out which module contains Get-PcsvDevice. I am running PS 5.1 on Server2012 R2.

                          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

                            0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                          • Please make this DNSServer module available on the Linux distribution of Powershell (pwsh)

                            If DNSServer module was available on Linux' powershell, Terraform would be able to provide infrastructure configuration for Windows DNS Server. This would benefit enterprises who are now using Terraform to implement infrastructure as code ...

                            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

                              0 comments  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
                            • Differences between 5.1 and 6.1, what are they?

                              I need some help.
                              I'm not sure wether this is a PS 6 bug or something else. I've got a piece of code that works well under 5.1, but not 6.1.

                              The code (important parts):
                              ....
                              #Initiate WebClient
                              $wc = new-object system.net.WebClient
                              #Configure proxy if needed
                              if($noproxy -eq $false)
                              {
                              $wc.proxy = new-object System.Net.WebProxy
                              $wc.proxy.Address = $proxyAddr
                              $wc.proxy.useDefaultCredentials = $true
                              $wc.proxy.BypassProxyOnLocal = $true
                              }
                              # First get the most recent file
                              $wc.DownloadFile($uri, $zip)
                              ....

                              The Error, in this case a proxy IS used.

                              Exception calling "DownloadFile" with "2" argument(s): "Authentication failed because the connection could not be reused."
                              At C:\data\stm\nvd\CVE.ps1:30…

                              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

                                0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                              • Support for powershell files with "," in the file name

                                It seems like this is the only place to report bugs, is that correct?

                                Powershell ISE is not able to open files with "," in their name, if you rightclick, and choose Edit. It seems like the ISE thinks, that it should open multiply files (separated by a comma).
                                I can drag'n'drop files, with comma in their names, into the ISE, and that works as expected.

                                Steps to reproduce:
                                1. Create a .ps1 file with a comma in the name (example: test1,test2.ps1)
                                2. Right click on file, and press edit
                                3. Note "Unable to load"-error.

                                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

                                  0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                                • Type-o in Support Page

                                  Example 4 in the following documentation has a type-o:
                                  https://docs.microsoft.com/en-us/powershell/module/hyper-v/resume-vmreplication?view=win10-ps

                                  Example Shows:
                                  Resume-Replication *

                                  Should Be:
                                  Resume-VMReplication *

                                  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

                                    0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Case-Sensitive option for Test-Path

                                    An option to force Test-Path to be case-sensitive would be extremely helpful, especially given a script could be run on either a case-sensitive filesystem or a case-insensitive one and produce different output. At the moment, this requires a fair amount of manual work for a common goal. An option to force case-insensitivity may also be desitable, given PowerShell can encounter case-sensitive filesystems.

                                    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

                                      0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Add-VpnConnection add provider parameter

                                      We are going to use the FortiClient as a VPN provider. Before we were using powershell to create a VPN connection on deployment of a computer. Unfortunately Add-VpnConnection does not support creating a connection other than the Windows built-in. I'd like to see an extra parameter to specify the VPN provider.

                                      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

                                        0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Bug: Powershell doesn't deal with returning empty arrays from functions to methods

                                        Given this module:
                                        class TestClass {
                                        [object]ReturnEmptyArray() {
                                        $testobject = Get-EmptyArray
                                        if($testobject -eq $null){
                                        Write-Host "Is Null"
                                        }
                                        return $testObject
                                        }

                                        [object]ReturnNull() {
                                        $testobject = Get-Null
                                        if($testobject -eq $null){
                                        Write-Host "Is Null"
                                        }
                                        return $testObject
                                        }
                                        }

                                        function Get-EmptyArray {
                                        return @()
                                        }

                                        function Get-Null {
                                        return $null
                                        }

                                        function Get-TestClass {
                                        return [TestClass]::new()
                                        }

                                        Export-ModuleMember Get-BlackDuckProject, Invoke-BlackDuckUrl, Get-TestClass

                                        the following works as expected:
                                        $test = Get-TestClass
                                        $test.ReturnNull()
                                        (a $null is returned)

                                        However, the following throws an exception:
                                        $test.ReturnEmptyArray()
                                        Index was out of range. Must be non-negative and less than the size of the collection.
                                        Parameter name: index

                                        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

                                          0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Error attempting to create a RAP/CAP policy containing parenthesis characters

                                          In module "RemoteDesktopServices"

                                          Run powershell as administrator, execute next:

                                          Import-Module RemoteDesktopServices
                                          New-Item -Path "RDS:\GatewayServer\RAP" -Name "Test_RAP_1 (test)" -UserGroups "Remote Users@DomainName" -ComputerGroupType 1 -ComputerGroup "RDS_group@DomainName"

                                          Get error:
                                          New-Item : The path contains characters that are not valid.
                                          At line:1 char:1
                                          + New-Item -Path "RDS:\GatewayServer\RAP" -Name "Test_RAP_1 (test 123)" ...
                                          + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          + CategoryInfo : InvalidArgument: (RDS:\GatewaySer...AP_1 (test 123):String) [New-Item], ArgumentException
                                          + FullyQualifiedErrorId : IllegalCharacters,Microsoft.PowerShell.Commands.NewItemCommand

                                          but if execute without parenthesis characters, its will executed with success

                                          New-Item -Path "RDS:\GatewayServer\RAP" -Name "Test_RAP_1 test" -UserGroups "Remote Users@DomainName" -ComputerGroupType 1 -ComputerGroup "RDS_group@DomainName"

                                          Moreover, if you create a policy through a graphical interface, then there are…

                                          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

                                            0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          Feedback and Knowledge Base