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. 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 →
                      • Compress-Archive throws "OutOfMemory" on large folders

                        When using Compress-Archive on a very large folder, I am getting a "OutOfMemory Exception" error. This also happens when I pipe the folder from Get-ChildItem.

                        PS E:\> Compress-Archive -Path \\servername\downloads\foldername -DestinationPath e:\Foldername_bef
                        ore-12-01-2016.zip -CompressionLevel Optimal
                        Exception calling "Write" with "3" argument(s): "Exception of type 'System.OutOfMemoryException' was thrown."
                        At
                        C:\windows\system32\windowspowershell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:809
                        char:29
                        + ... $destStream.Write($buffer, 0, $numberOfBytesRead)
                        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
                        + FullyQualifiedErrorId : OutOfMemoryException

                        PS E:\> $Psversiontable

                        Name Value
                        ---- -----
                        PSVersion 5.0.10586.117
                        PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
                        BuildVersion 10.0.10586.117
                        CLRVersion 4.0.30319.34209
                        WSManStackVersion 3.0
                        PSRemotingProtocolVersion 2.3
                        SerializationVersion 1.1.0.1

                        PS E:\>

                        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

                          2 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                        • When I try to display 2 arrays, no header and only the column with same name is returned

                          After loading 2 arrays that have one member with same name, I try to display the content in different ways ($array1;$array2, get-content from csv files where I saved the content of the arrays, ...), but after the first array shows perfectly, of the second one I only get the content of the first column (the one that has the same name) and no header.
                          To reproduce:

                          $Array1 = @()
                          $Array2 = @()

                          $Ar1 = New-Object PSCustomObject
                          $Ar1 | Add-Member -type NoteProperty -name Col1 -Value "AAA"
                          $Ar1 | Add-Member -type NoteProperty -name Col11-Value 0
                          $Array1 += $Ar1

                          $Ar2 = New-Object PSCustomObject …

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

                            • Add -HumanReadable parameter to Get-ChildItem

                              When I use Get-ChildItem it'd be really great if I didn't have to stare at the Length property (by the way, "Length"? Windows already calls this "Size" so just stick to conventions, will'ya?) to understand the size.

                              This parameter would accept the following values: Auto, KB, MB, GB, TB, PB.

                              On a multi-GB file we get output like the following for Length: 78697816273. That's HARD to read.

                              "Auto" would display the current item in the largest measure. Using the previous example, we'd get: 73.29 GB. If I used "KB" we'd get: 76853336.20 KB.

                              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  ·  Other PowerShell  ·  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 →
                                • "update-help -module powershellget" errs apparently because helpinfoURI is called with https rather than http

                                  update-help : Failed to update Help for the module(s) :
                                  'PowerShellGet'
                                  The HelpInfoURI https://go.microsoft.com/fwlink/?LinkId=393271 does not start with HTTP.
                                  At line:1 char:1
                                  + update-help -module powershellget
                                  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                  + CategoryInfo : NotSpecified: (HelpInfoUri:Uri) [Update-Help], Exception
                                  + FullyQualifiedErrorId : InvalidHelpInfoUriFormat,Microsoft.PowerShell.Commands.UpdateHelpCommand

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

                                    We’ll send you updates on this idea

                                    0 comments  ·  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…

                                    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

                                      3 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Add a "Comment these lines" action to the right-click context menu of PowerShell ISE

                                      Much like how other IDEs provide similar functionality, an ability to quickly comment/uncomment chunks of code through the context menu would be a valuable addition to future iterations of the already fantastic ISE.

                                      With one line selected by the user a # is fine, with multiple lines selected, a <# #> would be preferred.

                                      I understand there is a...very unusual (quite frankly) keyboard shortcut to accomplish something similar, but I believe there is significant value in having an easy to access method of accomplishing this.

                                      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

                                        0 comments  ·  ISE and tooling  ·  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 →
                                        • 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 →
                                          • Don't see your idea?

                                          Feedback and Knowledge Base