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. Set-AuthenticodeSignature fails to release file handle after error

    When attempting to use Set-AuthenticodeSignature to sign an unsupported file type, such as a .txt file with unstructured text, the cmdlet throws an error as expected, but then the PowerShell host process holds open a handle to that file, preventing the file from being deleted or edited. The PowerShell host process must be terminated to close the handle, or another external tool, like Process Hacker, must be used to close the handle manually.

    The error thrown is:

    "Status: UnknownError; StatusMessage: The form specified for the subject is not one supported or known by the specified trust provider"

    The problem was…

    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 →
    • Gallery help site needs new capability

      The documentation site need a menu or link item to quickly switch versions of a help topic. Like the old MSDN site.

      Example Site topic: https://msdn.microsoft.com/powershell/reference/5.1/Microsoft.PowerShell.Utility/Read-Host

      The version access is important for support issues to be able to quickly switch versions as the "-online" with help always targets the current version or nothing.

      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 →
      • Allow Environment Variable as default value for function parameter.

        When defining a function, I would like to use an environment variable as the default value. If the environment variable exists and has a value that value will be used. For example,

        function Get-Info ([Alias("name")] [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [string] $projectName = $env:Project_Name)
        {
        }

        Instead of having to passing in the Project Name for each call I would like to store it in an environment variable. When I do it would allow me to call Get-Info with no parameters and the value in the environment variable would be used. If the environment variable does not exist or is empty the user…

        16 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 →
        • Update to 5.1 breaks Get-WindowsFeature when Carbon module is installed

          I've been testing WMF 5.1 recently and noticed a random issue. After installing WMF 5.1 I could no longer run Get-WindowsFeature. I get the following error:

          PS C:\> Get-WindowsFeature
          Get-WindowsFeature : The term 'Get-WindowsFeature' is not recognized as the name of a cmdlet, function, script file,
          or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
          try again.
          At line:1 char:1
          + Get-WindowsFeature
          + ~~~~~~~~~~~~~~~~~~
          + CategoryInfo : ObjectNotFound: (Get-WindowsFeature:String) [], CommandNotFoundException
          + FullyQualifiedErrorId : CommandNotFoundException

          Tab complete still works for the cmdlet however. After some digging, I…

          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 →
          • WMF 5 - Invalid callee when using variant wrapper

            If I use the Runtime.InteropServices.VariantWrapper in WMF5 I get errors trying to interact with the system center orchestrator 2012 com object.. (x86)

            IE if I do this without WMF5:

            $oisMgr = new-object -com OpalisManagementService.OpalisManager
            $oHandle = New-Object Object
            $handle = New-Object Runtime.InteropServices.VariantWrapper($oHandle)
            $oisMgr.Connect($Username, $Credential.Password, [ref]$handle)

            It works fine, if I run with WMF5 I get an Invalid Callee Error.

            OS is windows 2012.. thinking about it as I write this, has the 'Object' type changed at all between the two?

            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

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

              To be honest PowerShell historically does not handle variants particularly well. We may have regressed in this area, which would be bad, so we have question and some pointers to articles that may help.

              Can you give us the information in $PSVersionTable, please?

              There is a good article in StackOverflow that talks about using Variants and offers some suggestions: http://stackoverflow.com/questions/30512785/retrieving-session-id-from-com-method

              One of the better suggestions is in a link from that article: http://www.archivum.info/microsoft.public.windows.powershell/2010-01/00361/RE--quot-Invalid-callee-quot--calling-a-com-object.html. While the content is valuable, I will apologize in advance for the ad placement on that page :-(

            • Exchange Online in-place ediscovery cmdlet

              in-place ediscovery helps a lot for company acquisitions and migrations due to it's ability to export a mailbox into a PST file, which can then be uploaded into either another tenant, mail solution, or archiving solution. Having to create these for each individual use by hand is cumbersome and time consuming. It would be nice to have a cmdlet that allows the creation of in-place ediscovery in exchange online.

              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 →
              • The description attached to the parameters -Delimiter -Encoding -Raw -Stream -Wait (This parameter is not supported by any providers that ar

                This comment pertains to the help entry for Get-Content (https://msdn.microsoft.com/en-us/powershell/reference/5.0/microsoft.powershell.management/get-content) I Tried to enter the feedback into the actual page but my browser reloaded the page and lost the floating feedback link. Perhaps it was already submitted.

                The description attached to the parameters
                -Delimiter
                -Encoding
                -Raw
                -Stream
                -Wait
                (This parameter is not supported by any providers that are installed with Windows Powershell.)
                is both incorrect and useless.

                It is incorrect because the parameters are supported by the FileSystem provider (at least).

                It is useless because it gives no information about the reason for the existence of the parameter.…

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

                    3 comments  ·  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.

                  • Select-String output (MatchInfo) should be formatted after deserializing

                    Here's an example. The select-string output from Invoke-Command just outputs a bunch of blank lines instead of any useful info.

                    "hello`r`n"*6 | Out-File c:\temp\testFile.txt
                    write-host 'Local execution'
                    select-string -Path c:\temp\testfile.txt -Pattern hello -SimpleMatch

                    write-host 'Remote execution'
                    invoke-command -ScriptBlock{ select-string -Path c:\temp\testfile.txt -Pattern hello -SimpleMatch} -ComputerName localhost

                    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 →
                    • Write-Host -NoNewLine and Transcription

                      Starting with WMF 5.0 the -NoNewLine option for Write-Host is essentially ignored in the transcripts created using Start-Transcript.

                      Simple example script:

                      Start-Transcript log.txt
                      Write-Host -NoNewLine "this should all"
                      Write-Host -NoNewLine "be on one line"
                      Write-Host -NoNewLine "in the log.txt file"
                      Stop-Transcript

                      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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                      • I have a .ps1 script that i want to use whatever directory i am in. So the script is in windowspowershell directory.

                        I have a .ps1 script that i want to use whatever directory i am in. So the script is in windowspowershell directory.

                        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 →
                        • Find-Module and Install-Module does not get the modules from the custom nuget fileshare repositories though they are registered successfully

                          PS C:\Windows\system32> Get-PSRepository

                          Name InstallationPolicy SourceLocation
                          ---- ------------------ --------------
                          PSGallery Untrusted https://www.powershellgallery.com/api/v2/
                          TestRepo Trusted \\NugetServer\BMNNuGet\packages

                          PS C:\Windows\system32> Find-Module * -Repository TestRepo

                          Version Name Repository Description
                          ------- ---- ---------- -----------
                          1.0.1 cConfigNode TestRepo Provides a way to manipulate nodes of the xml configu...
                          1.3.0 cNtfsAccessControl TestRepo The cNtfsAccessControl module contains DSC resources ...
                          3.2.0 xNetworking TestRepo Module with DSC Resources for Networking area
                          1.0.0 xReleaseManagement TestRepo Host a custom DSC Resource to transform files based o...
                          1.17.0 xWebAdministration TestRepo Module with DSC Resources for Web Administration

                          PS C:\Windows\system32> Find-Module xNetworking -Repository TestRepo
                          PackageManagement\Find-Package : No match was found for the specified…

                          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 →
                          • Duplicate help files in PSWorkflow module break Get-Help

                            At some point in the 5.0 time period, Update-Help installed About topic files in the en-US directory for the PSWorkflow module with .txt (not .help.txt) file name extensions.

                            e.g. about_Foreach-Parallel.txt

                            Later, this was fixed and Update-Help installed the same help files in the same directory with the (correct) ".help.txt" file name extension.

                            e.g. about_Foreach-Parallel.help.txt

                            Now, the PSWorkflow\en-US directory has 9 pairs of files that are identical except for the file name extension.

                            about_ActivityCommonParameters.help.txt
                            about_ActivityCommonParameters.txt
                            about_Checkpoint-Workflow.help.txt
                            about_Checkpoint-Workflow.txt
                            about_Foreach-Parallel.help.txt
                            about_Foreach-Parallel.txt
                            about_InlineScript.help.txt
                            about_InlineScript.txt
                            about_Parallel.help.txt
                            about_Parallel.txt
                            about_Sequence.help.txt
                            about_Sequence.txt
                            about_Suspend-Workflow.help.txt
                            about_Suspend-Workflow.txt
                            about_WorkflowCommonParameters.help.txt
                            about_WorkflowCommonParameters.txt
                            about_Workflows.help.txt
                            about_Workflows.txt

                            Get-Help should ignore the .txt files (must have changed in…

                            6 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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
                            • Update-Help: Failed to update Help for the module(s) 'NetworkControllerDiagnostics'

                              The following error show up when executing 'Update-Help -force':
                              PS C:\WINDOWS\system32> Update-Help -Force
                              Update-Help : Failed to update Help for the module(s) 'NetworkControllerDiagnostics, Provisioning' with UI culture(s)
                              {en-US} : Unable to retrieve the HelpInfo XML file for UI culture en-US. Make sure the HelpInfoUri property in the
                              module manifest is valid or check your network connection and then try the command again.
                              At line:1 char:1
                              + Update-Help -Force
                              + ~~~~~~~~~~~~~~~~~~
                              + CategoryInfo : ResourceUnavailable: (:) [Update-Help], Exception
                              + FullyQualifiedErrorId : UnableToRetrieveHelpInfoXml,Microsoft.PowerShell.Commands.UpdateHelpCommand

                              PS C:\WINDOWS\system32> $PSVersionTable

                              Name Value
                              ---- -----
                              PSVersion 5.1.15048.0
                              PSEdition Desktop
                              PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
                              BuildVersion 10.0.15048.0
                              CLRVersion…

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

                                  1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                • encourage youth to PowerShell

                                  It would be a great motivation for young admins (e.g. students) to start learn PowerShell if it out of a box has commands concerning desktop computers in a workgroup environment. I think of managing local users, groups, dealing with screen resolution or power management, system updates - just simple stuff for everyday use.

                                  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 →
                                  • Update-Help does not update BitsTransfer

                                    Update-Help seems to be unable to update help files for BitsTransfer module. It returns the following error:

                                    Update-Help : Failed to update Help for the module(s) 'BitsTransfer' with UI culture(s) {en-US} : The value of the
                                    HelpInfoUri key in the module manifest must resolve to a container or root URL on a website where the help files are
                                    stored. The HelpInfoUri 'https://technet.microsoft.com/en-us/library/dd819413.aspx'; does not resolve to a container.
                                    At line:1 char:1
                                    + Update-Help
                                    + ~~~~~~~~~~~
                                    + CategoryInfo : InvalidOperation: (:) [Update-Help], Exception
                                    + FullyQualifiedErrorId : InvalidHelpInfoUri,Microsoft.PowerShell.Commands.UpdateHelpCommand

                                    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 →
                                    • Add proxy configuration on PowerShell ISE

                                      PowerShell ISE needs to have a proxy configuration!

                                      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 →
                                      • DynamicParam should recognize quoted string arguments (at least single quoted)

                                        Using PSVersion 5.1.14393.576

                                        Allowing quoted literals would be useful to allow argument values spaces.

                                        Function Show-DynamicParam {

                                        [CmdletBinding()]
                                        Param(
                                        [Parameter()]
                                        [string]
                                        $Test
                                        )

                                        DynamicParam {
                                        if ($Test -ine 'test') {
                                        throw "Does not work. Value was '$Test'"
                                        }

                                        $ParameterDictionary = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary
                                        $Parameter = New-Object System.Management.Automation.RuntimeDefinedParameter('works', [switch], [System.Management.Automation.ParameterAttribute]::new())
                                        $ParameterDictionary.Add('works', $Parameter)
                                        return $ParameterDictionary
                                        }

                                        Process {

                                        }

                                        }

                                        # when using an argument literal the -works switch appears
                                        Show-DynamicParam -Test test -works

                                        # when using a string literal the value of $Test is 'test' WITH the quotes, see $Error[0]
                                        Show-DynamicParam -Test 'test' -

                                        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  ·  PowerShell Engine  ·  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

                                            1 comment  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          Feedback and Knowledge Base