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. Error in topic about_Pipelines under INVESTIGATING PIPELINE ERRORS

    The example command given under "INVESTIGATING PIPELINE ERRORS" in the about_Pipelines help topic is incorrrect. the example situation is moving a registry entry from one key to another, in the example it's trying to move the entry "product" from the hklm:\software\mycompany\design registry key to the hklm:\software\mycompany\sales key. The second ("fixed") command at the end:

    get-item -path hklm:\software\mycompany\design |
    move-itemproperty -dest hklm:\software\mycompany\design -name product

    should be:

    get-item -path hklm:\software\mycompany\design |
    move-itemproperty -dest hklm:\software\mycompany\sales -name product

    I also think the source and destination seem switched or misplaced throughout that section of the topic, unrelated to the example error given for the purpose…

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
    • Bug when loading functions with custom classess from One Drive folder in Windows 10

      Loading scripts with custom classes fails when loading file from One Drive folder location

      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 →
      • The display of the console is misaligned if execute sfc.exe on ja-jp.

        The display of the console is misaligned if execute sfc.exe /scannow on ja-jp environment.

        I tried on the both en-us and ja-jp OS environment and it's only happens on the ja-jp.

        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 →
        • Bug: New-PSDrive mounts locally scoped, even though it is supposed to be across a powershell Session.

          Confirmed that PSDrive is only scope locally in the class method is was called in:

          Test Setup:

          Mount(): HKU, HKCC, HKCUHKLM in class method. Display PSDrive mounts.
          Call Test() within that Mount(), which mounts HKCR; Display PSDrive in method call.
          Display PSDrive mounts on Test() return
          Display PSDrive mounts on Mount() return
          Call Test() method from main, Display PSDrive mounts.
          Display PSDrive mounts on Test() return
          VERBOSE: Mounting registry drives for use ...
          VERBOSE: HKU
          VERBOSE: HKCC
          VERBOSE: HKCU
          VERBOSE: HKLM
          Alias C Cert Env Function HKCC HKCU HKLM HKU Variable WSMan (Scope: Mount())
          Alias C Cert Env Function HKCC…

          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 →
          • Expand-Archive does not return a System.IO.FileInfo nor System.IO.DirectoryInfo

            The docs clearly say that Expand-Archive should return a System.IO.FileInfo or System.IO.DirectoryInfo but it has no output

            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 →
            • WMF 5.1 breaks class registrations for the ConfigMgr client agent

              I've localized this issue to WMF 5.1 on Windows 7. With this installed, the WMI namespace: root\ccm\policy\defaultmacine\requestedconfig becomes invalid. This is important because in In-Place upgrade scenarios from Windows 7 to Windows 10, the task sequence agent cannot resume the task sequence without being able to read this namespace. I know this is a combination of WMF and ConfigurationManager so I will post there as well.

              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  ·  WMI  ·  Flag idea as inappropriate…  ·  Admin →
              • Bug in Get-Date when converting time ticks

                The year given by get-date when translating a timer tick (as LastLogon from an AD user account) seems to be incorrect. Especially compared to other methods of translating timer ticks.

                get-date(131406975810394085)
                den 31 maj 0417 09:46:21

                [datetime]::FromFileTime("131406975810394085").ToString()
                2017-05-31 11:46:21

                Year 2017 or 417?

                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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                • Slow "." hash lookups

                  Slow "." hash lookups (more than 100 times slower than []) from PowerShell Version 2 to Version 5.1

                  This could be either a documentation problem or a bug. The documentation never says that the "." hash lookup can be much slower than the [] lookup. I hope it is a bug (one less thing to remember). They both worked at the same speed in PS Version 2.0 and diverged sometime after that.

                  Two script files. The first calls the second forcing versions 1 thru 5 of PowerShell.

                  The "." hash lookups in PS Version 2.0 take .028 seconds.
                  The "."…

                  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 →
                  • PowerShell Query returns nothing

                    I am trying to do a query to obtain setting values of RSOP_SecuritySettingBoolean in PowerShell (and WMI) but it returned nothing. The following query I attempted:

                    E:\>PS E:\> Get-WmiObject -Namespace "root\RSOP\Computer" -Query "SELECT setting FROM RSOP_SecuritySettingBoolean Where KeyName='ClearTextPassword' and precedence='1'"

                    PS E:\>

                    For your extra information:

                    E:\>ver

                    Microsoft Windows [Version 10.0.14393]

                    PS E:\> $psversiontable

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

                    My Windows 10 OS is still fresh, installed about 2 months ago via ISO. Why is it not returning any results? Please help.…

                    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  ·  WMI  ·  Flag idea as inappropriate…  ·  Admin →
                    • get-credential with a smart card

                      I work in an environment that enforces 'smart card required' for all accounts admin or otherwise so I have multiple certificates on the smart card. I understand you can use a smart card with get-credential but the problem is it only has the first cert available when prompted. I need there to be a way to make all certs on the smart card available when prompted with get-credential. I'm also stuck using ActivClient so hopefully this isn't a limitation of the smart card provider.

                      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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                      • BUG: PowerShell xml node assignment with where-method

                        Doing this works:
                        ($xmlDoc.unattend.settings.Where({$_.pass -eq "specialize"}).component.Where({$_.name -eq "Microsoft-Windows-Shell-Setup"}) | Where-Object {$true}).ComputerName = "Test02";
                        But without "| Where-Object {$true}" it fails.

                        https://social.technet.microsoft.com/Forums/en-US/6801cfda-4699-4c2b-8a84-7d12de76e51d/powershell-xml-node-assignment-bug?forum=ITCG

                        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 →
                        • DSC need to use full width of command processor in output

                          DSC output is not respecting width of console and wraps text around despite full width is not utilized.
                          Please see details here (https://github.com/PowerShell/PowerShell/issues/4030)

                          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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                          • Enable WINRM certificate mapping for domain user

                            Currently I need to manage Windows DNS server. I would like to use a client certificate to connect to WinRM to manage it, since I want to expose it in RESTful interface. But WINRM certificate mapping only allows non-domain account.

                            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  ·  WinRM  ·  Flag idea as inappropriate…  ·  Admin →
                            • Get-TargetResource should not use 'Required' parameters

                              I'm not sure why this is, but for some reason Get-TargetResource requires not only the 'Key' parameters, but also the 'Required' parameters. My understanding is only 'Keys' should be necessary to find an existing resource and the 'Required' parameters are necessary when you want to create/update/delete something related to a resource.

                              This really makes no sense and will hinder our ability to build higher level tech on top of DSC. If I have the key values for any piece of data in any system, I should be able to retrieve it without any additional information.

                              In almost all of the…

                              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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                              • Inconsistant handling of native command stderr

                                I discovered recently that the handling of `stderr` from native commands isn't being dealt with consistently between Windows PowerShell and Windows PowerShell ISE.

                                Steps to reproduce
                                ------------------

                                ```powershell
                                $errorActionPreference="stop"; try { cmd /c nosuchexe } catch { 'dang!' }
                                ```

                                Actual ISE behavior (expected)
                                -----------------

                                ```none
                                dang!
                                ```
                                Native commands writing to `stderr` while `$errorActionPreference="stop"` generate a catchable `NativeCommandError` which encapsulates the original error message in a `ErrorRecord`. It is easy to capture, analyze, and reword error messages in context.

                                Actual CLI behavior
                                ---------------

                                ```none
                                'nosuchexe' is not recognized as an internal or external command,
                                operable program or batch file. …

                                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 →
                                • Start-Process is behaving strange when -credential switch is used

                                  When running Start-Process start-process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -cred $(Get-Credential) regardless if the credentials differ from the current consoles credentials or the same credentials are used, the new console window seems to be unresponsive, until you switch back to the console from which the new console was launched and start typing something in that console.

                                  If the same thing is done in ISE, this issue does not occour.

                                  I have testet this on PS 5.1.14393.206, 5.1.14393.953 and 5.1.14393.693. Windows Server 2012R2, Windows Server 2016 and Windows 10

                                  Please see the issue in this video: https://goo.gl/8ZvdEV

                                  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

                                    1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                  • what works?

                                    list what works?

                                    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 →
                                    • Do not require starting brace to be on same line as cmdlet

                                      It is very annoying and confusing that some cmdlets require the starting brace to be on the same line as the cmdlet, while others do not.

                                      For example, this is valid:

                                      ... | ForEach-Object {
                                      $sourcefile = $_.Name
                                      }

                                      but this is not:

                                      ... | ForEach-Object
                                      {
                                      $sourcefile = $_.Name
                                      }

                                      yet using this is valid:

                                      foreach ($x in $y)
                                      {
                                      $sourcefile = $_.Name
                                      }

                                      I know that you can use the backtick to make it valid, like this:

                                      ... | ForEach-Object `
                                      {
                                      $sourcefile = $_.Name
                                      }

                                      but that's still not intuitive and requires you to remember to do…

                                      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 →
                                      • Why can't Acrobat save these PowerShell articles?

                                        I've tried several ways to capture the PowerShell documentation into a single PDF file which I find much more convenient instead of clicking around a Microsoft site. Acrobat just locks up. I've never seen it behave this way before.

                                        It places PowerShell out of reach for those of us trying to learn new tools.

                                        Please try it yourself. Acrobat XI Pro.
                                        - Use the browser plugin "create PDF from webpage"
                                        - Or start with Acrobat "create PDF"
                                        - Or Browser / Save as html complete

                                        Print to PDF is inadequate because webpage links are missing and on the PowerShell pages,…

                                        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

                                          2 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
                                        • [bug] ConverttoDateTime

                                          The ConvertToDateTime() ScriptMethod is incorrect / broken and does NOT take into account the current time zone as defined by System.Management.ManagementDateTimeConverter.ToDateTime() method. In fact, it's not applying any time zone at all. Full analysis and test scripts at my blog - https://goo.gl/b4ZTqf

                                          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

                                            2 comments  ·  WMI  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          Feedback and Knowledge Base