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. Add semicolon as a multi-line statement completion in lieu of back-tick

    Hate back-tick

    Reminds me VB 1.0

    Add a language (parser) support to use multi line statement completion char (don't re invent, use semicolon) in lieu of back tick as statement continuation on each line.

    Don't have to kill back-tick, let it be there for backward compatibility.

    Semi colon as statement completion (no back tick) can be an addition to the language.

    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 →
    • Need a PowerShell version of tpmvscmgr.exe to manage TPM smart cards

      We need a PowerShell version of tpmvscmgr.exe to manage TPM virtual smart cards.

      The tpmvscmgr.exe tool 1) does not accept PIN, PUK and AdminKey numbers as arguments, these must be entered interactively in powershell.exe only, not ISE or with a pop-up, 2) cannot list currently existing virtual smart card ID strings, and 3) is somewhat crude in how it manages card lockout policies and unlocks.

      This is needed not just for Windows clients, but also because Server 2016 Hyper-V supports virtual smart cards for guest VMs, such as for VDI scenarios.

      We need to be able to pass in PIN,…

      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 →
      • Win32_ComputerSystem Username does not show disconnected sessions

        Yet another script to determine if it will be disruptive to reboot a workstation. Win32_ComputerSystem.Username is blank if the user(s) have locked the computer (I'm pretty sure this is considered session disconnect). Is there a way to find the users who are logged on but not actively?

        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 →
        • $? doesn't change in case of parsing error

          1..5 | buggy_call
          $?
          The result is $False and this is expected

          1..5 | $_
          $?
          The result is $True and this is not expected

          This is frustrating for end users.
          It's better to return $false in case of all errors.

          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 →
          • Make filtering easier by including all properties as parameters

            Maybe the best way I can explain this is by giving an example.

            The following does not work (but should):

            PS> Get-Service -Status Running

            When you run

            PS> Get-Service

            you're shown a few columns of data, one of which is Status. To do what I want to do above, you have to write the following:

            PS> Get-Service | ? {$_.Status -eq "Running"}

            This should no longer be considered good UX.

            To put a little polish on this feature suggestion, I'm not (necessarily) advocating that each property from an object should be listed in the PARAMETERS section of Get-Help for 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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
            • get-command -module only shows aliases with verb-noun naming

              If a module exports aliases which don't follow the verb-noun convention (which most don't), they aren't shown with get-command -module <modulename>.

              Get-command -module <modulename> -commandType Alias does show them,
              as does
              Get-command -module <modulename> -all
              This is counter-intuitive, because -commandtype should narrow the results, and the description of the -all switch says it's for "revealing" commands hidden by naming collisions.

              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 →
              • Remove-ISESnippet

                There should be a cmdlet that reverses the Import-Snippet cmdlet. Properties that could be used to identify the snippet to remove (from current ISE session): DisplayTitle, FullPath, or Module.

                It would also be nice to expose an Unload method in the ISESnippetObject and ISESnippetCollection objects.

                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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                • We need a proper set of built-in, easy-to-use, dedicated registry cmdlets

                  Managing registry keys and values on local and remote systems with PowerShell is a pain.

                  Reviewing the articles, forums and blogs on the Internet clearly shows that new PowerShell users struggle to understand how to use registry provider drives and the cmdlets like New-Item, Get-ItemProperty, New-ItemProperty, and so on. This has prompted the creation of a variety of home-brew modules and functions to deal with the problem, like this one, which is extremely useful, but is not built into PowerShell by default of course:

                  https://gallery.technet.microsoft.com/RegistryLibrarypsm1-b38a81ba

                  PowerShell needs a proper set of built-in, dedicated registry cmdlets that 1) are easy to…

                  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

                    1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                  • Why is it still convoluted to see if Updates have been downloaded and are waiting to be installed?

                    Like a lot of locations, updates for production servers are downloaded but not installed until reviewed. It is difficult to understand with all the automation Powershell tries to provide, it appears to be completely hands-off when it comes to updates? Why is that? Better, lets just get that fixed.

                    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 →
                    • Update-ModuleManifest -ExternalModuleDependencies do not treated correctly a single value

                      This statement

                      Update-ModuleManifest -path $ManifestPath -ExternalModuleDependencies 'PSScriptAnalyzer'

                      Add this lines :
                      # External dependent modules of this module
                      ExternalModuleDependencies = 'PSScriptAnalyzer'

                      But in this case publish-Module throw an exception :

                      PowerShellGet cannot resolve the module dependency 'PSScriptAnalyzer' of the module 'MyModule' on the repository 'MyGetFeed'.
                      Verify that the dependent module 'PSScriptAnalyzer' is available in the repository 'MyGetFeed'.
                      If this dependent module 'PSScriptAnalyzer' is managed externally, add it to the ExternalModuleDependencies entry in the PSData section of the module manifest.

                      Possible 'workaround', duplicate the name :

                      Update-ModuleManifest -path $ManifestPath -ExternalModuleDependencies 'PSScriptAnalyzer','PSScriptAnalyzer'

                      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  ·  Package Management  ·  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 →
                          • Get-AuthenticodeSignature TimeStamperCertificate broken

                            Problem:

                            Get-AuthenticodeSignature does not return a time stamper certificate for files which have been time stamped with a valid time stamp server.

                            Steps to reproduce:

                            Using signtool.exe (from Windows SDK), view the signature info for signtool.exe. Verify that it has been time stamped, and that you can see the time stamper certificate.

                            Using Get-AuthenticodeSignature, view the signature of signtool.exe. Notice that the TimeStamperCertificate field is blank.

                            Consequences:

                            Powershell will report any signed file as valid as long as the signature is valid, regardless of whether or not the timestamp is valid.

                            Powershell version:
                            Major Minor Build Revision
                            ----- ----- -----…

                            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 →
                            • Does sqlps need to be imported for PS vers 4.0

                              In PS 3.0, it was known to have to do an Import-Module sqlps -DisableNameChecking command in order to get the SQL SMO CMDLETS for working with SQL Server. Is this still needed for PS 4.0? There doesn't seem to be any Documentation on this difference.

                              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 →
                              • New Verb: Demo

                                Demo (verb), 'demonstrate the capabilities of (software or equipment).' Another verb to flag that the function/cmdlet is not for production but will demonstrate a key knowledge item, technique, or concept. Where the suggestion for the verb Proto has to do with the (rapid) development path, this would fill a need in training or maintaining on-going knowledge of the language. It's a great suggestion, please up-vote!

                                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 →
                                • Message Cannot unprotect message. The input contained no encrypted content

                                  When upgrading to WMF 5.1, we are seeing errors in the DSC event log on servers that use a configuration with encrypted content (passwords). We are using encrypted credentials to create application pools and assign a service account as the identity. The data gets decrypted fine and the app pools get created with the correct identities. However the following error gets logged in the DSC event log every time a consistency check runs:

                                  Job :
                                  Message Cannot unprotect message. The input contained no encrypted content. Specify the '-IncludeContext' parameter if you wish to output the original content when no encrypted…

                                  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

                                    investigating  ·  0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Support for Query Language CQL lacks documentation: CIM_QueryCapabilities missing

                                    The Get-Ciminstance -QueryDialect parameter accepts CQL
                                    https://technet.microsoft.com/en-us/itpro/powershell/windows/cimcmdlets/get-ciminstance#-querydialect
                                    Official tutorials
                                    http://www.wbemsolutions.com/tutorials/DMTF/wbem-cql.html
                                    and specifications say the standard class CIM_QueryCapabilities reveals the features supported by the CQL implementation.
                                    However, this class is missing, and documentation is not to be found.
                                    Would Microsoft care to spare us the mystery?

                                    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 →
                                    • ResourceUriSessionSet of Get-CimInstance doesn't filter

                                      Observe this sample output: same -Filter, different results.
                                      Equal parity for general CIM would be nice.

                                      > Get-CimInstance -ResourceUri http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_LogicalDisk -Filter "DeviceID='D:'" -KeyOnly -CimSession $cs | % { '{{{0}}}' -f $_.DeviceId }
                                      {C:}
                                      {D:}
                                      > Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DeviceID='D:'" -KeyOnly -CimSession $cs | % { '{{{0}}}' -f $_.DeviceId }
                                      {D:}
                                      > $PSVersionTable

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

                                      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 →
                                      • New Verb: Proto

                                        A new verb (that's really not a verb in the dictionary but is as used in Dev). "Proto". It would signify that the cmdlet/function is a template or example. Would be more complete (more specific in values) than a snippet.

                                        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 : Convert-String throw a NullReferenceException when -InputObject contains an empty string

                                          Steps to reproduce
                                          ------------------
                                          Convert-String -InputObject [String]::empty

                                          Expected behavior
                                          -----------------
                                          The cmdlet return an empty string ?

                                          Actual behavior
                                          ---------------
                                          Convert-String : La référence d'objet n'est pas définie à une instance d'un objet.
                                          At line:1 char:1
                                          + Convert-String -InputObject ''
                                          + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          + CategoryInfo : NotSpecified: (:) [Convert-String], NullReferenceException
                                          + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.StringManipulation.ConvertStringCommand
                                          ```
                                          Environment data
                                          ----------------
                                          > $PSVersionTable
                                          Name Value
                                          ---- -----
                                          PSVersion 5.1.14409.1005
                                          PSEdition Desktop
                                          PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14409.1005}
                                          BuildVersion 10.0.14409.1005
                                          CLRVersion 4.0.30319.42000
                                          WSManStackVersion 3.0
                                          PSRemotingProtocolVersion 2.3
                                          SerializationVersion 1.1.0.1

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

                                          Feedback and Knowledge Base