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. PS 5.1 Bug: Restart-Computer hangs PowerShell after completion when passing large array of ComputerNames

    when I call:
    Restart-Computer -ComputerName $lotsOfComputers -Force

    where: $lotsOfComputers is 20-150 other computers on the LAN in our AD environment

    This is the sequence of events: First, the command completes quickly, the expected computers reboot, and no errors are displayed. I can then type in the console exactly 1 new line of input and hit enter, after which the PowerShell console hangs for a long period of time (several minutes), possibly in correlation to the size of the array of computers. Once it begins hanging it does not register any new keyboard input onscreen during the hang (but it does…

    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 →
    • CircuitPowerShell

      Microsoft should make CircuitPowerShell to further enable IoT like there is CircuitPython.

      https://forums.adafruit.com/viewtopic.php?f=60&t=143726

      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 →
      • OpenSource NetTCPIP and put it in a GitHub repo.

        I am extremely annoyed by Test-NetConnection and would like to make it better. Why is there not a skip ICMP flag, or a timeout flag?

        Please, OpenSource this so the community could improve this tooling for all.

        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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
        • PowerShell version of DEVCON.EXE or Device Manager cmdlets

          DEVCON.EXE can be used to install, uninstall, enable, disable, configure or query devices (as seen in Device Manager) from the command line. Here is the description:

          https://msdn.microsoft.com/en-us/library/windows/hardware/ff544707(v=vs.85).aspx

          To get DEVCON.EXE, you have to download the entire Windows Drivers Kit (WDK), which is 803MB in size, and, as I understand it, DEVCON cannot be legally redistributed or shared separately.

          It would be good to have a PowerShell cmdlet to replace DEVCON that is either installed by default or available in the PSGallery.

          Or just allow DEVCON.EXE to be downloaded separately from the WDK somehow, like through NuGet, PSGallery or anywhere.

          Or…

          7 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

            5 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
          • DNSResourceRecords in DNSServer

            The Name parameter is not consistent with this set of cmdlets. Sometimes Name refers to a hostname, or sometimes it is in reference of a child domain zone name, which is my case. I would like it if the Name was always used for child domain, and use the host to refer to the hostname, as to not get them confused between get, set, remove, etc.Set-DNSResourceRecord should not rely entirely on input and output objects either.

            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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
            • Simplify Changing Title of PowerShell Window

              Enable setting the title of the powershell window with this simple command

              title "someWindowTitle"

              The DOS cmd.exe has such a simple command and the current equivalent powershell is this cumbersome command-line

              $host.UI.RawUI.WindowTitle = "someWindowTitle"

              For Windows developers that use multiple command windows all day, such a command a simple improvement would really help in the adoption of PowerShell.

              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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
              • Invoke-RestMethod does not preserve headings when following a redirect

                When the Invoke-Restmethod cmdlet makes a request and receives a 302 to follow, the subsequent request does not send the headers with the subsequent request.

                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 →
                • 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 →
                      • [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 →
                        • 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 →
                          • 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 →
                            • ">" or "out-file" changes the file encoding to an unusual one ("unicode")

                              Using the ">" operator or the "out-file" command changes the file encoding from ansi to unicode. No other cmdlet seems to do that. And this is only true in Powershell 5, not 6.

                              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 →
                              • Module Cmdlets missing after Import-Module

                                I have started experiencing an issue on multiple machines where modules that once worked fine now stop functioning correctly.

                                The issue appears to affect Windows 10 machines that have been in service for some time, but does not affect new Windows 10 installs. This leads me to believe that something like a windows update broke the correct functioning of the module import functionality on these machines at some point in the past.

                                The modules in question have been SQLPS (installed with SSMS), SqlServer (from PSGallery), and AWSPowerShell (also from PSGallery). The issue is that after installing the module and importing…

                                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

                                  1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                • Windows PowerShell (or pwsh) on Microsoft Store for Windows 10 in S Mode?

                                  Would it be possible to get PowerShell into the Microsoft Store for Windows 10 in S Mode, in some sort of container that would allow for connections to exchange online powershell, and other tasks?

                                  3 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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Fix Get-InsightsCapabilityResult -Name Parameter to accept wild cards

                                    The Get-InsightsCapabiloityResult cmdlet is part of the SystemInsights module in Server 2019.

                                    This cmdlet takes a Name parameter. This parameter specifies which capability results to return. It would be helpful if this parameter accepted a wildcard (* or *cpu*) to return some but possibly not all results.

                                    This would improve the ease of use of this cmdlet in production.

                                    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 →
                                    • Problem with external commands when current location is invalid

                                      If your current location is on a UNC path or network drive that is no longer accessible, and you run an external command, the command is run with the current directory set to c:\windows\system32 or sometimes c:\windows. If the external command is destructive, e.g., robocopy with the /move option, this can make your system unbootable.

                                      Powershell should behave the same way as cmd.exe, i.e, refuse to run an external command if the current location is no longer valid.

                                      (PS: the problem does not always occur the first time you run a command after the current location becomes invalid. I believe…

                                      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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                      • The VSTS Deploy task Azure PowerShell and Build task - PowerShell are not able to handle secret variables and Azure key vault variables corr

                                        1.Issue:
                                        The VSTS Deploy task Azure PowerShell and Build task - PowerShell are not able to handle secret variables and Azure key vault variables correctly while writing their values to console using write-host. This is causing the values of secret variables to the exposed in log files.

                                        2.Steps to reproduce

                                        a. Sample script:

                                        param(
                                        [Parameter(Mandatory=$true)]
                                        [string]$Secretvariablewithspecialcharacter,
                                        [Parameter(Mandatory=$true)]
                                        [string]$normalVariablewithspecialcharacter,
                                        [Parameter(Mandatory=$true)]
                                        [string]$Secretvariablewithnospecialcharacter
                                        )
                                        Write-Host "Printing parameters:"
                                        Write-Host "Secretvariablewithspecialcharacter: $Secretvariablewithspecialcharacter"
                                        Write-Host "normalVariablewithspecialcharacter: $normalVariablewithspecialcharacter"
                                        Write-Host "Secretvariablewithnospecialcharacter: $Secretvariablewithnospecialcharacter"

                                        $notspecialcharacter="1234abcd";
                                        $specialcharacter ="1234§-¤%#&/=abcd"

                                        Write-Host "notspecialcharacter: $notspecialcharacter"
                                        Write-Host "specialcharacter: $specialcharacter"

                                        if ($Secretvariablewithspecialcharacter -eq $specialcharacter)
                                        {
                                        Write-Host "Secretvariablewithspecialcharacter $Secretvariablewithspecialcharacter and $specialcharacter specialcharacter match"
                                        }

                                        else
                                        {
                                        Write-Host "Secretvariablewithspecialcharacter '$Secretvariablewithspecialcharacter'…

                                        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 →
                                        • cmdlets for Overriding Language not working in buid 1709/1803

                                          cmdlets for Overriding Language not working in buid 1709/1803
                                          Set-WinDefaultInputMethodOverride -InputTip ***-XXXXXX
                                          Set-WinUILanguageOverride -Language XXXXXX

                                          Does not change settings and generate no error message in PS

                                          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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 20 21
                                          • Don't see your idea?

                                          Feedback and Knowledge Base