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. BUG: Set-Clipboard -AsHtml puts invalid CF_HTML on clipboard with non-ASCII text

    Repro with PowerShell 5.1.14986.1000:
    1) Set-Clipboard -AsHtml "abc"
    2) Paste into Word
    3) Text appears correctly as: abc
    4) Set-Clipboard -AsHtml "àbc"
    5) Paste into Word
    6) Text appears incorrectly as: ࢣ

    Appears CP 1251 text is being put in the CF_HTML, not UTF8.

    1 vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)

      We’ll send you updates on this idea

      1 comment  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
    • Suggested verbs: Build or Make

      Would like to suggest a new verb. Build or Make

      New can work, but it's very vague where Build/Make gives a much more definitive indication of the intent. Build-PSModule, Make-DeploymentScript, etc.

      3 votes
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)

        We’ll send you updates on this idea

        0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
      • Start-DscConfiguration over secure WinRM (HTTPS / 5986) without needing to provide the Cim-Session

        referring to my post here. http://stackoverflow.com/questions/41567036/start-dsc-configuration-securely-usessl-without-needing-to-provide-the-compute

        Having the ability to continue using the ConfigurationData with multiple nodes and use a secure session (WinRM over 5986)

        2 votes
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)

          We’ll send you updates on this idea

          0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
        • PowerShell Classes: methods with hyphenated names - of course

          Good evening

          We really miss the days where Microsoft followed its own best practices.

          We all know - and most love - the verb-noun naming convention in PowerShell.

          Therefore, we have the very basic question:
          Why isn't it allowed to create verb-noun method names in PowerShell classes??
          (hyphenated names are not allowed)

          This is really annoying, because we are forced to break the naming conventions.

          Kind regards,
          Tom

          1 vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)

            We’ll send you updates on this idea

            0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
          • ConfigurationAST should include resource modules being imported

            The ConfigurationAST added in v4 for PowerShell DSC does a good job at providing resource configuration details. However, to determine what modules are being imported, we should still use the keyword AST to find the resource module names from the Import-DSCResource command. While this is a workaround, it will be easier if ConfigurationAST can provide this information for simplicity.

            14 votes
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)

              We’ll send you updates on this idea

              survey  ·  0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
            • PSWriteline

              In the most recent engine, you have coded a hook into the internal class Microsoft.PowerShell.ConsoleHostUserInterface so that PSReadLine could be incorporated into PowerShell.exe. This is really nice but I would like to take it a step further. Why not add two PowerShell.exe arguments for a custom read line and write line modules. The arguments would simply be called:
              -ReadlineHandler <file.xml>
              -WritelineHandler <file.xml>

              Sample XML files would be:
              <ReadlineHandler>
              <Module Name=”PSReadline”>
              <Function Name=”PSConsoleHostReadLine”>
              </ReadlineHandler >

              <WritelineHandler>
              <Module Name=”PSWriteline”>
              <Function Name=”PSConsoleHostWriteLine”>
              </WritelineHandler>

              A customer can write an assembly and reference the module name and function name in the XML file accordingly. Today,…

              2 votes
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)

                We’ll send you updates on this idea

                0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
              • Out-Gridview should provide a count of the number of objects displayed

                It would be very useful if Out-Gridview provided a build in display of the number of objects in the grid. This could be in a status bar at the bottom or at the top along with the Add Criteria button.

                This would update as the filters are applied. It would also be nice if the selected items had a count as well.

                It would be especially useful with -passthru as you could have an estimate on the number of objects being passed to the next cmdlet in the pipeline.

                You can come up with the count by using measure-object, but…

                9 votes
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →

                  It would certainly be cool, but we’re not really investing in Out-GridView at this point in time. I’ll leave this open as a Survey to see if the demand surpasses our bar (though I’d caveat that demand would have to be fairly high).

                  Thanks,
                  Joey

                • Get-Content bug: A parameter cannot be found that matches parameter name 'Encoding'

                  Get-Conent with the Encoding parameter works against local file system paths such as this example:
                  Get-Content -Encoding Byte -Path C:\Users\desktop.ini

                  However, against a mapped network drive it does not:
                  Get-Content -Encoding Byte -Path I:\Users\desktop.ini
                  Get-Content : A parameter cannot be found that matches parameter name 'Encoding'.
                  At line:1 char:13
                  + Get-Content -Encoding Byte -Path I:\Users\desktop.ini

                  The issue can be re-produced against a non-existing network drive as well.
                  The behaviour is not expected and the error message is very misleading to users who don`t know what dynamic parameters is, since the same code works against a local path where -Encoding is…

                  2 votes
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    1 comment  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                  • Create symbolic link to a shadow copy using New-Item

                    I'm able to make a symbolic link to a shadow copy using CMD mklink and kernel32.dll.CreateSymbolicLink
                    But I'm not able to do this using PS>New-Item
                    E.g.:
                    New-Item -Path c:\temp\SL1 -ItemType SymbolicLink -Value \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy7\

                    I get an error saying the path doesn't exist (that is the VSS path)

                    1 vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                    • Allow DSC Reports to include ResourcesNotInDesiredState that were corrected during a consistency check

                      Currently if a node is set up to ApplyAndAutoCorrect, when the report is sent back to the report server, there is no reference to any resources that were out of desired state at the time of the consistency check. DSC will just put them back in desired state without reporting what it did. For compliance reasons, we would like to be able to query the report server to see if any resources had to be put back into desired state.

                      21 votes
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                      • Jobs hanging when using PSDrives with credentials

                        As noted here (with a full example): http://stackoverflow.com/a/41118870/1987746

                        There seems to be an issue with using PSDrives with credentials in PowerShell jobs. If the PSCredential object is created within the job, it gets stuck in the running state even after all actions have completed. However, if the same PSCredential object is passed to the job as a parameter, it completes within 1 second.

                        In PowerShell 4 the job will stay "running" indefinitely. In PowerShell 5.1, the job will run for ~180 seconds and then complete.

                        2 votes
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                        • Allow Description in Markdown format

                          It could be useful to have Markdown formatting in manifest file to provide rich description on PowershellGallery

                          7 votes
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            1 comment  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →

                            Specific ask for the voters: If you are willing, please add a note what your expectations are, and how you would see this providing extra value in the Gallery when we display this content.

                            This type of feature is something we are generally a little bit cautious about.
                            Rendering active MD content can include links & other items that result in some amount of risk for users of a site.

                          • Get-Service throws wrong exception if remote host is offline

                            Get-Service returns exception as "Cannot find any service with service name" even if we give an offline/not existing host as argument for -ComputerName parameter

                            4 votes
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              1 comment  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                            • BUG: PE Engine gets StackOverflowException if cmdlet Remove-Item encounters foldername = ALT+255

                              If you try to delete a folder (not file) that is named with the invisible ALT+255 character, the PE engine will crash with StackOverflowException. This bug can temporarily be remedied by using cmd rmdir instead of Remove-Item -Recurse

                              1 vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                              • Register-ArgumentCompleter Should Support Module-Qualified Command Names

                                Register-ArgumentCompleter does not appear to support module-qualified command names, such as:

                                Register-ArgumentCompleter -CommandName Microsoft.PowerShell.Management\Get-Process

                                Running this command does not return an error, but does not function either. Module-qualified command names are often considered a best practice so it would be helpful if this was supported. Thanks!

                                1 vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                                • Start-PcsvDevice is not up to current spec

                                  PROBLEM:
                                  I have been using the PcsvDevice commands to use IPMI out-of-band management to my servers. It works great for systems that are configured for legacy boot. But, the reboot does not work properly for systems that are requesting UEFI reboot. Here are the commands that work correctly for legacy booting:

                                  Set-PcsvDeviceBootConfiguration -TargetAddress $ipAddr -Credential $creds -ManagementProtocol IPMI -OneTimeBootSource $device.StructuredBootString[0]
                                  Start-PcsvDevice -TargetAddress $ipAddr -Credential $creds -ManagementProtocol IPMI

                                  The purpose of the above commands is to force a LAN boot no matter what is configured as the first boot device on the targeted server. This is handy if I want to…

                                  1 vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                  • ISE Bracket Shading

                                    I think that the ISE should have some user-customizable options - such as bracket shading. The grey isn't quite dark enough to spot. PowerGUI's shading is significantly darker, making it easier to detect the correlating bracket.

                                    2 votes
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Package PowerShell Classes in a Module

                                      Object Oriented Programming seems to be supported now in PowerShell, but custom classes defined in modules don't seem to behave the way they should.

                                      There only seem to be two consistent ways to make these work when importing a module that has classes defined:
                                      1. Import the module, then run "using module ..." to make the classes available in the session. Alternatively, you can import the module with the using statement, but this isn't ideal (no versioning).
                                      2. Add the class definition file(s) to the ScriptsToProcess attribute of the module. This isn't ideal either as it runs the scripts in…

                                      12 votes
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

                                        1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                      • INPUTS and OUTPUTS section of get-help not displaying properly

                                        Problem description
                                        --------------------------
                                        INPUTS and OUTPUTS section of get-help -Full content shows some unwanted tab and new line characters for almost all cmdlets.

                                        For e.g.,

                                        get-help content with INPUTS and OUTPUTS section highlighted where extra new line and tab comes for every cmdlet help content.


                                        INPUTS
                                        PSObject OR array of PSObject OR String OR array of String


                                        You can pipe one IP address or a list of IP addresses as Strings, or one PSObject or list of PSObjects having
                                        the iLO details such as IP Address, Hostname, Username and Password to access the iLO.


                                        OUTPUTS



                                        PSObject[] is returned. Use Get-Member…

                                        1 vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          1 comment  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Powershell and collections (in particular, collection of preference variables)

                                          I've been struggling with exporting and importing preference variables from local to remote sessions. One idea that came to me was the idea of a collection of preference variables. According to a fellow at StackOverflow, Powershell doesn't institute these kinds of collections. If this is true, I would kindly request them to be implemented.

                                          2 votes
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)

                                            We’ll send you updates on this idea

                                            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →

                                            What are the environment variables you are interested in exporting? If it’s possible to enumerate them, then you can set them up in multiple locations.
                                            Take a look at the New-PSSessionConfigurationFile cmd (start with the help for it). It’s designed to enable part of the scenario you are interested in, but not sure if that is enough of what you are asking for.

                                          • Don't see your idea?

                                          Feedback and Knowledge Base