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. 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 →
    • 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 →
                      • use semi-colon as line separator

                        `
                        do you see that? that's the line continuation line in PS. very hard to notice because maybe you think it's a dirt on the screen or on a book.

                        would be better if lines continue until it meets a semi-colon. yes just like in C. a semi-colon is easier to notice and you wouldn't mistake it for a dirt on the screen.

                        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 →
                        • PowerShell to select SSID

                          Many companies have several wifi ssids. You know, "Corp" "Guest" "Upstairs Lab"
                          Very very common.

                          How? How do you select one via 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 →
                          • Add support for SSRS Mobile reports to Out-RsFolderContent

                            Out-RsfolderContent fails when exporting Mobile Reports because the 'TypeName' MobileReport is not covered in the function.

                            I added the following remedy to my system. may be nice for others.
                            I have not yet tested for PowerBI reports ... but neither have the people making these nice modules ...

                            if (($item.TypeName -eq 'MobileReport') ) {
                            $relativePath = $item.Path
                            if($RsFolder -ne "/") { $relativePath = Clear-Substring -string $relativePath -substring $RsFolder -position front }
                            $relativePath = $relativePath.Replace("/", "\")
                            $newFolder = $Destination + $relativePath
                            Write-Verbose "Creating folder $newFolder"
                            New-Item $newFolder -ItemType Directory -Force | Out-Null
                            Write-Verbose "Folder: $newFolder was created successfully."
                            }

                            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 →
                            • How to compare current and next Iteration values of foreach loop in Powershell.

                              Hi,I have a loop like below. In that, I want to compare next iteration value with current iteration value. If current value is not match with next value then I need to do some process. So I want to know like how to get the next Iteration value of a loop in powershell.
                              $var = ('abc','abc','bcd','cdf','cdf')
                              Foreach($i in $var){ 
                              If($i -ne $nextiterationvalue) 
                              {       do something  } 
                              else  {     do something  }}

                              Thanks,Dinesh

                              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 →
                              • Import-PfxCertificate and relates commands don't exist on linux/macos powershell

                                our .net core projects use powershell. The lack of these commands impedes our cross-platform activities.

                                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 →
                                • Unable to use PowerShell Transcription with Active Directory Administrative Console (ADAC)

                                  Setup group policy to enable PowerShell Transcripting. From a machine that has that policy applied, launch ADAC. The error "Cannot connect to any domain. Refresh or try again when connection is available." pops up and ADAC can't be used.

                                  https://github.com/PowerShell/PowerShell/issues/3021

                                  6 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 →
                                  • 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.

                                    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 →
                                    • powershell.exe does not preserve current directory when launched from command prompt

                                      Given a script with the contents:

                                      ```
                                      $location = Get-Location

                                      Write-Host "current directory [$($location.Path)]"
                                      ```

                                      Actual:
                                      From command prompt:
                                      ```
                                      e:\projects\test>powershell -File ..\cleanBinObj.ps1
                                      current directory [E:\projects]
                                      ```

                                      From powershell:
                                      ```
                                      E:\projects\test> ..\cleanBinObj.ps1
                                      current directory [E:\projects\test]
                                      ```

                                      Expected: calling powershell from the command prompt should preserve the current directory and print "E:\projects\test" instead of "E:\projects"

                                      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 →
                                      • Powershell cmdlets to retrieve and collect specific versions of policies in the policy store for AGPM

                                        The existing powershell cmdlets for AGPM only allow manipulation of the current versions of policies. Please enhance these cmdlets to allow querying / returning of specific versions of policies stored in the policy store. For example Get-ControlledGpo only allows returning of a list of the latest versions of GPO's. Please include an additional parameter return a specific version or all versions of a policy, and include the GPO version in the standard returned object.

                                        This would allow powershell driven versions of policy rollback, ie:

                                        Get-ControlledGpo -Domain "TSQA.Contoso.com" | Where {$_.Name -eq "A Great Policy" -and $_.PolicyVersion -eq 10 } |…

                                        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: binary module loading fails silently on Fall Creators update on some machines

                                          occurs in PS 5.1 on Windows 10, Fall Creators update
                                          First observed with SqlServer module 21.0.17199
                                          Also occurs with PsWindowsUpdate v2.0.0.0 , SqlServer 21.0.17224

                                          Pretty much what it says - with either autoload or Import-Module, the module loads with no complaints but the cmdlets aren't there. The assemblies _do_ get loaded into the appdomain. I found no obvious clues poking around with ProcMon and Trace-Command (obvious to me, anyway). Happens on some machines, not others. Reported by 3 users (that I know of), in each case after updating to the Fall Creators update. If you have any debugging hints, they'd…

                                          4 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 →
                                          ← Previous 1 3 4 5 19 20
                                          • Don't see your idea?

                                          Feedback and Knowledge Base