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. "Using module" statement does not reload module after changes are made

    Problem Description
    ------------------
    If you are using the `using module` statement, it will load the module without any issues. However, if you make a change to the module and run the `using module` statement again without restarting your PowerShell session, it will not load the new modified module into memory, and instead will continue to use the old existing module that was loaded. This makes doing development with `using module` statements very tedious as you must continually reload your PowerShell session whenever you make changes to the module.

    Ideally we would just use `Import-Module -Name [module name] -Force` to avoid…

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

        1 comment  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
      • Errors that terminate script due to -ErrorAction Stop do not show correct line number

        PS > type .\error.ps1
        [Cmdletbinding()]
        param()

        "hello"
        "world"

        1/0

        PS > .\error.ps1
        hello
        world
        Attempted to divide by zero.
        At D:\junk\error.ps1:10 char:5
        + 1/0
        + ~~~
        + CategoryInfo : NotSpecified: (:) [], RuntimeException
        + FullyQualifiedErrorId : RuntimeException

        PS > $ErrorActionPreference = "Stop"
        PS > .\error.ps1
        hello
        world
        D:\junk\error.ps1 : Attempted to divide by zero.
        At line:1 char:1
        + .\error.ps1
        + ~~~~~~~~~~~
        + CategoryInfo : NotSpecified: (:) [error.ps1], RuntimeException
        + FullyQualifiedErrorId : RuntimeException,error.ps1

        Note incorrect line number being reported on second invocation when ErrorActionPreference equals "Stop"

        This can also be reproduced by putting "$ErrorActionPreference = "Stop" at line 3 of the…

        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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
        • Reset LCM configuration

          Reset LCM configuration.

          Hi and sorry for my funny English.
          When I configure my LCM, it's impossible to reset state.
          If I want a default configuration, I send a new configuration this default value for all Settings (here, no value, just settings).

          [DscLocalConfigurationManager()]
          Configuration ResetLCM {
          Node MyNode {
          Settings {
          ActionAfterReboot =
          AllowModuleOverwrite =
          CertificateID =
          ConfigurationDownloadManagers =
          ConfigurationID =
          ConfigurationMode =
          ConfigurationModeFrequencyMins =
          DebugMode =
          MaximumDownloadSizeMB =
          RebootNodeIfNeeded =
          RefreshFrequencyMins =
          RefreshMode =
          ReportManagers =
          ResourceModuleManagers =
          SignatureValidations =
          StatusRetentionTimeInDays =
          }}

          I think it's easier to use command.

          For example, there is a reset configuration for DSCConfigurationDocument. …

          8 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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
          • Test-DscConfiguration returns a String instead of a Boolean value

            Test-DscConfiguration returns a String instead of a Boolean value.

            Contrary to what is mentionned in the documentation, the function Test-DscConfiguration does not return a boolean value.

            When you do a GetType() of the return value of Test-DscConfiguration you get a string with 'true' or 'false'.

            It's impossible to do a simple if (Test-DscConfiguration) because the string 'false' enter inside the if, we are forced to cast the return value of this cmdlet in boolean or to do the comparison with -eq $True, which seems to cast it automatically.

            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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
            • New PowerShell Tab should place cursor into console pane input line (Regression)

              After opening "New PowerShell Tab" either using Ctrl+T shortcut or by clicking menu item, tab title gets keyboard focus. Instead, cursor should be placed into input line of console pane.
              This was the way previous versions of ISE worked (before Windows 10).

              See video demo: https://www.youtube.com/watch?v=0fzk1VEQpo0

              (Opening new tab using Ctrl+T, look closely at tab title with dashed line border).

              Windows 10 version 10.0.17763.134
              PowerShell ISE version 5.1.17763.134

              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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
              • Escape Char with Powershell ISE

                I am attempting to use the `b or `r sequence as per https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_special_characters?view=powershell-6
                if I use the example in that page and issue the command write-host “backup`b`b out” in Powershell (non ISE) you get “back out” as the output as per the example however if you do this in ISE you get “backup out” instead.
                It would appear that ISE cannot handle these two special characters. From what I can tell all the others such as `t and `n work fine.
                This is verified by DoctorDNS in the following issue post
                PowerShell/PowerShell-Docs#3151
                Thanks
                Robert

                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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                • [BUG] Start-Process might not return Handle/ExitCode

                  Issue:
                  In order to obtain the Exit Code from a Process we are executing the Start-Process cmdlet with the following parameters:
                  -PassThru -Wait -WindowStyle Hidden
                  or
                  -PassThru -Wait -NoNewWindow

                  In rare cases, this leads to the following exception:
                  System.Management.Automation.CmdletInvocationException: Cannot process request because the process (<ProcessIdHere>) has exited. ---> System.InvalidOperationException: Cannot process request because the process (<ProcessIdHere>) has exited.
                  at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
                  at System.Diagnostics.Process.OpenProcessHandle(Int32 access)
                  at System.Diagnostics.Process.get_Handle()

                  After the Exception occurred, the returned Object does not contain a Handle nor Exit Code but the executable itself executed without issue.

                  We also tried to remove the “-Wait” Parameter and…

                  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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                  • ISE should not switch focus automatically to the console pane

                    Starting from Windows 10 1803, when you run a selected block of code using F8, ISE switches focus to the console pane. This means that when you run several of these, you have to manually switch the focus back to the script pane after each execution.

                    This is much more difficult than before, so please fix this.

                    30 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

                      6 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                    • Fix Add-DnsServerResourceRecord TXT Records Limit

                      When attempting to add a TXT DNS record via the "Add-DnsServerResourceRecord" command, the DescriptiveText property only accepts strings up to 254 characters but should support up to 255 characters. Ideally the command should accept an array for the DescriptiveText so that multiple lines of up to 255 characters can be passed through. Currently it requires using `r`n to insert a line break but over all must still be under 254 characters. This is an issue as we are trying to implement automation around TXT records and DKIM records tend to be well over this 254 character limit and require multiple…

                      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  ·  Desired State Configuration (DSC)  ·  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 →
                          • geef mijn NAS terug

                            Waarom haalt u een functie uit mijn OS, zonder mij een keuze te laten of is dat wel wil. Ik kan nu mijn NAS niet meer gebruiken, zonder dat ik een verschrikkelijk moeilijk verhaal moet lezen en dat ik mijn leverancier (die al niet meer bestaat) moet benaderen om iets te veranderen. Ik kan geen contact meer maken met mijn backup systeem om files op te halen, zonder dat ik nu een verschrikkelijk dure specialist ga inguren. Dank u wel microsoft. \geen wonder dat iedeeen over wil naar linux of OSx.

                            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 →
                            • Receive-Job duplicates Write-Host output

                              Starting in PowerShell 5.1, if a background job uses Write-Host, the Receive-Job cmdlet shows each line of output twice.

                              # Steps to Reproduce
                              1. Run this command: `Start-Job { 1..10 | % { Start-Sleep -Milliseconds 10 ; Write-Host $_ } } | Wait-Job | Receive-Job`
                              2. Note the duplicate numbers. This error does not happen in Powershell 6.0.4.

                              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

                                2 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                              • Backport Powershell 6.x to Windows Powershell

                                To keep Windows Powershell up to date please backport any new features from Powershell 6.x to Windows Powershell.

                                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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                • about_using help topic doesn't exist

                                  On docs.microsoft.com there is a help topic for about_using which describes the using keyword that is new in Windows PowerShell 5.0 (https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_using?view=powershell-5.0).

                                  Running:
                                  Get-Help about_using
                                  returns the help topic about_Remote_Variables which describes the $Using prefix used to access local variables from a remote session because that help topic has the keyword "about_Using".

                                  The about_using help topic should be added to the help topics for Windows PowerShell 5.1.

                                  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 →
                                  • Get-NetQosFlowControl -InterfaceAlias

                                    Hi,

                                    I`m trying to implement "Get-NetQosFlowControl -InterfaceAlias <name>" cmdlet using WMI. I want to query adapter specific NetQosFlowControl configuration.

                                    I don't see any available API in WMI to do this.

                                    How could I get adapter specific NetQosFlowControl configuration using only WMI?

                                    Thanks,
                                    Alexander

                                    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  ·  WMI  ·  Flag idea as inappropriate…  ·  Admin →
                                    • A replacement for New-WebServiceProxy for SOAP calls

                                      Add the ability to make SOAP calls which originally was done using New-WebServiceProxy.

                                      SOAP services are still common in both small companies and large enterprise where some products only have this method of integration. Many legacy systems both purchased and built in house use SOAP and will continue to for a significant time as the cost of upgrading is either too great, does not make commercial sense or simply impossible.

                                      I have only just started to look at PowerShell 6 and this is a complete road block for using it at this time. If there are alternative options without having…

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

                                          Feedback and Knowledge Base