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. import-pfxcertificate needs to support legacy private key storage format

    When using Import-PFXCertificate to import PFXs that contain a private key the private key appears to be stored using CNG "Microsoft Software Key Storage Provider" instead of the legacy format "Microsoft Enhanced Cryptographic Provider v1.0"

    Most Microsoft products can't read this format.

    The PS-Drive Provider "Certificate" can't even read keys in this format.

    It would be helpful to update the CMDLet to support CNG, however, as pointed out in this article: https://www.sysadmins.lv/blog-en/retrieve-cng-key-container-name-and-unique-name.aspx - almost no .NET apps use CNG because it has only been accessible via native APIs.

    Without being able to force the key storage format to the older…

    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 →
    • 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 Gallery  ·  Flag idea as inappropriate…  ·  Admin →
      • AzureAD v2 Add/Remove Licenses

        Licencing in AzureADModules is ridiculous, a one liner in the MSOnline Module has become a seven liner, WHY?!

        We liked it when we could do this:
        Set-MsolUserLicense -UserPrincipalName belindan@litwareinc.com -AddLicenses 'litwareinc:ENTERPRISEPACK'

        and whilst i'm here, this:

        Set-MsolUserLicense -UserPrincipalName belindan@litwareinc.com -RemoveLicenses "litwareinc:ENTERPRISEPACK"

        If you must change it, then change it to something like:
        Set-AzureADlUserLicense -ObjectID belindan@litwareinc.com -RemoveLicenses "litwareinc:ENTERPRISEPACK"

        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 →
        • 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 →
          • BUG: Storage Module : Get-Volume cmdlet with the -FileSystemLabel

            The FileSystemLabel switch won't find volumes if they have [ ]'s in the name
            e.g.
            Get-Volume -FileSystemLabel '[PAGEFILE]'

            Can't seem to find away to escape them for it to find it.

            Have got round it with a Where-Object
            Get-Volume | Where-Object { $_.FileSystemLabel -eq '[PAGEFILE]' }

            But I thought I would flag it

            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 →
            • MSFT_WebDownloadManager issue

              Hi there,
              Please advise on the following failure I am facing while trying to apply DSC changes on the remote machine:
              "
              PS C:\Windows\system32> Set-DscLocalConfigurationManager -Path .\LCMPullMode
              Undefined class: MSFT_WebDownloadManager
              At line:15, char:2
              Buffer:
              Connection = True;
              };^
              ins
              + CategoryInfo : SyntaxError: (root/Microsoft/...gurationManager:String) [], CimException
              + FullyQualifiedErrorId : MiClientApiError_Failed
              + PSComputerName : be-lab-v17
              "

              Thanks in advance,
              Ofer

              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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
              • WMF 5.1 RestrictedRemoteServer session type fails to import the 'Microsoft.PowerShell.Utility' module

                When importing this module in a restricted session type or when making a function or a cmdlet from this module visible, i.e:
                VisibleFunctions = 'Get-FileHash'
                the following message is returned:
                WARNING: The 'Microsoft.PowerShell.Utility' module was not imported because the 'Microsoft.PowerShell.Utility' snap-in was already imported.
                In practice, the module is not being imported.
                Get-PSSnapin shows that a snapin with the same name is indeed loaded:
                Name : Microsoft.PowerShell.Utility
                PSVersion : 5.1.14409.1005
                Description : This Windows PowerShell snap-in contains utility
                cmdlets that are used to view and organize data in different ways.
                but exposes no commands
                Get-PSSnapin from a regular (not remote)…

                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  ·  WinRM  ·  Flag idea as inappropriate…  ·  Admin →

                  This report is a bit confusing, so need some information.
                  On the system where you received this error, please try running any of the commands from Microsoft.PowerShell.Utility, such as get-member, or get-date. The error message and the information you provided seems to indicate that the module is already loaded, so we are looking for other indications that it is not.

                • Get-AppxPackage not accepting pipeline input

                  The Get-AppxPackage command does not appear to accept pipeline input.

                  These work:

                  Get-AppxPackage -Name "9E2F88E3.Twitter"
                  Get-AppxPackage "9E2F88E3.Twitter"
                  "9E2F88E3.Twitter" | Foreach { Get-AppxPackage $_ }

                  These do not work and return nothing at all:

                  "9E2F88E3.Twitter" | Get-AppxPackage
                  "9E2F88E3.Twitter" | Select @{ Name="Name"; Expression={$_} } | Get-AppxPackage

                  Using the -Verbose parameter simply gives:

                  VERBOSE: No packages found.

                  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 →
                  • Ability to delete unlisted module with no downloads

                    It would be nice to be able to delete a module that hasn't been downloaded yet and is unlisted. I made a mistake in publishing a module which I unlisted before anyone downloaded it. There is no benefit to me or anyone having it remain in the gallery.

                    None of the follwing published reasons for disallowing deletions apply:

                    1. Other items may depend on that item. Those items might not necessarily be in this gallery.
                    2. Ensures that folks using items without committing the same will not be broken.
                    3. Helps ensure that important community owned items are not mass…

                    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 Gallery  ·  Flag idea as inappropriate…  ·  Admin →

                      We understand the ask, & are leaving it as Survey to gauge the interest level.

                      For now, you can use the Contact Us link to specify the item & version that you want deleted. Specify why you feel that this is something that should not be left in the Gallery, providing more detail is likely to help.
                      The Gallery operations team will investigate and, if it meets what is actually a very high bar, will delete it.

                    • Bug: Here string - When using invoke-command when here string starts with [

                      Using a here string to create an LCM file using a Hyper-V VM and invoke-command.
                      If the here string starts with [ the file created is blank if viewing with get-content. Viewing the file with PSEdit, the file is full of squares.

                      Code used to generate this:

                      $lcmscript = @'
                      [DSCLocalConfigurationManager()]
                      configuration LCMPush
                      {
                      Node $AllNodes.Where{$_.Role -eq "Primary DC"}.Nodename
                      {
                      Settings
                      {
                      RebootNodeIfNeeded = $true
                      ActionAfterReboot = 'ContinueConfiguration'
                      ConfigurationMode = 'ApplyAndAutoCorrect'
                      CertificateID = "REPLACEWITHFRESHLYCREATEDTHUMBPRINT"
                      }
                      }
                      }

                      # Create the computer.meta.mof in folder
                      LCMPush -configurationData c:\dsc\dscconfigdata.psd1 `
                      -OutputPath c:\dsc\LCM
                      '@

                      Invoke-Command -VMName $vmname -Credential $cred -ScriptBlock { New-Item c:\dsc\lcm -ItemType…

                      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 →
                      • Add option for New-WebServiceProxy to use existing assembly

                        New-WebServiceProxy dynamically generates a new assembly with the types for a web service and adds it to the AppDomain every time it's called, even for the same URI with the same credentials.

                        Please add a parameter to New-WebServiceProxy that will allow it to use an existing assembly if possible. Even if the caller had to specify the assembly, that would be helpful.

                        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 →
                        • workflow common parameters

                          The WorkflowCommonParameters entry is missing from help for workflows.

                          PowerShell workflows have both common parameters and workflow common parameters.

                          Get-Help help for workflows has an entry in the Parameters section for CommonParameters, but not for WorkflowCommonParameters. It needs both.

                          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 →
                          • Property UserName and UserGroupName of Add-PswaAuthorizationRule command don't work

                            OS : Windows Server 2016

                            The command prompt an error when I add authorization rule in PowerShell Web Acces. It's syntax error : "domain/user".

                            But, this is my commande :
                            Add-PswaAuthorizationRule -ComputerName SRVDC01 -UserName 'FRPSUG\Test' -ConfigurationName Microsoft.PowerShell

                            It's same issue with group, no quote, simple quote, double quote, local user...

                            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 →
                            • Multi Line description passes Test-ScriptFileInfo but fails to publish

                              When I tried to publish the script https://raw.githubusercontent.com/SQLDBAWithABeard/DataScienceVM/master/New-WindowsDataScienceVM.ps1 it fails with missing description but passed the Test-FileScriptInfo prior to me trying

                              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

                                4 comments  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
                              • WhatIf switch does not work on cmdlet Install-AdcsCertificationAuthority

                                The whatif switch is not working when installing a ADCS with the cmdlet Install-AdcsCertificationAuthority. The cmdlet is executed in full.
                                I blogged about it here:
                                https://mssec.wordpress.com/2016/02/18/installing-ca-via-powershell-whatif-not-working/
                                Jeffery Snover himself asked me on Twitter to submit a bug reort on this, see here:
                                https://twitter.com/jsnover/status/827524167465525249

                                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 →
                                • Bug: Final line of Format-Hex output repeats previous line after EOF

                                  When using Format-Hex ( PowerShell version 5.0.10586.672 as returned by $PSVersionTable.PSVersion ), at least with the "-path" parameter, the final line of output -- if more than 1 line of output -- will duplicate the previous line's characters, starting with the first position after the final character of the file.

                                  Meaning, if there are two rows of output ( each row displaying 16 characters ) and the file naturally ends at the third character position (i.e. "02") in the second (and final) row, then character positions 4 - 16 (i.e. "03" - "0F") will duplicate character positions 4 - 16…

                                  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: 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 →
                                    • No StdOut output on console until second object

                                      Let me explain. I have a script that is collecting data, and I send it to StdOut by simply piping it into Select (but problem also happens if I add a ForEach loop and simply make [PSCustomObject] objects). Then my script loops to the next server. That output is not displaying on the screen. All is not lost though, when the script loops to the second server and displays both the first and second will now display. When the third server finishes it displays OK, as does the 4th.

                                      So it looks like it's just the first one. Normally I…

                                      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

                                        3 comments  ·  PowerShell Engine  ·  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 →
                                        • Add KeepCDC flag to Smo.Restore class

                                          Gets or sets a Boolean property value that specifies whether to maintain a change data capture configuration during a restore operation.

                                          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

                                            0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          Feedback and Knowledge Base