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. Remove the implied Get- verb

    Please remove the ability to use the implied Get verb. It is cryptic, expensive and unnecessary.
    Thanks.

    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

      2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    • SqlServer module Join-SqlAvailabilityGroup connection pooling error

      When I call Join- SqlAvailabilityGroup commandlet and active database for pooled connections is not master, I get an error message. There are could be number of different reasons why active database for the PowerShell session would change.

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

        We’ll send you updates on this idea

        1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
      • ServerCertificateValidationCallback has no effect on Invoke-WebRequest/RestMethod

        ServerCertificateValidationCallback has no effect on Invoke-WebRequest or Invoke-RestMethod. This is unexpected behavior (well at least the first time you try it :).

        Details in this GitHub issue - https://github.com/PowerShell/PowerShell-Docs/issues/1753

        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 →
        • Drop Uservoice and open a GitHub repo for tracking issues

          Seriously. How is this any good for tracking issues? You "upvote" an issue? Cmon.

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

            We’ll send you updates on this idea

            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
          • BUG : New-Item -Type New-Item -Type SymbolicLink -Target a -Path b won't work in "developer mode" without elevation

            Steps to reproduce

            Windows 10 Pro, 1703 15063.608
            "Developer mode" activated

            PS D:\Partage\tmp> New-Item -Type File a

            Répertoire : D:\Partage\tmp

            Mode LastWriteTime Length Name
            ---- ------------- ------ ----
            -a---- 04/10/2017 11:42 0 a

            PS D:\Partage\tmp> New-Item -Type SymbolicLink -Target a -Path b
            New-Item : Cette opération nécessite un privilège d'administrateur.
            Au caractère Ligne:1 : 1
            + New-Item -Type SymbolicLink -Target a -Path b
            + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            + CategoryInfo : PermissionDenied: (D:\Partage\tmp\a:String) [New-Item], UnauthorizedAccessException
            + FullyQualifiedErrorId : NewItemSymbolicLinkElevationRequired,Microsoft.PowerShell.Commands.NewItemCommand

            PS D:\Partage\tmp>

            Well this did not work, let's try with good old CMD.exe

            PS D:\Partage\tmp> cmd
            Microsoft Windows [version 10.0.15063]
            (c) 2017 Microsoft Corporation.…

            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 →
            • Date and time returned by Folder.GetDetailsOf() are missing seconds

              PS C:\> $path = 'C:\Windows\System32\notepad.exe'
              PS C:\> $shell = New-Object -COMObject Shell.Application
              PS C:\> $folder = Split-Path $path
              PS C:\> $file = Split-Path $path -Leaf
              PS C:\> $shellfolder = $shell.Namespace($folder)
              PS C:\> $shellfile = $shellfolder.ParseName($file)
              PS C:\> $shellfolder.GetDetailsOf($shellfile, 4)
              18/03/2017 21:58

              Why does the output miss seconds?

              If this is related to my current culture (en-IE), and therefore expected behavior, then how would I change this? If I use Using-Culture nl-NL { ... } (as on the MSDN blog), then Get-Date indeed shows the time in Dutch. However, GetDetailsOf() does not!

              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 →
              • Invoke-WebRequest and Invoke-RestMethod not working correctly with REST API like cURL

                Hi,
                Recently I am working on a Telegram Bot creation with power shell, everything working fine except uploading the images via API.

                If I use cURL, it is working fine using following command, So, technically it should work with native PowerShell commandlet.

                curl -s -X POST "https://api.telegram.org/bot11111111:Mykey/sendPhoto?chat_id=-123456789" -F photo="@D:\MyPic.JPG" -F caption="Test"

                I have already tried following, but none worked. As per the API Guide (https://core.telegram.org/bots/api), we have to use multipart/form-data for uploading any file, for cURL, without specifying this also works.

                Invoke-RestMethod -Uri "https://api.telegram.org/bot$MyBotKey/sendPhoto?chat_id=XXXXXXXXX" -Method Post -InFile "D:\MyPic.JPG" -ContentType "multipart/form-data"
                Invoke-WebRequest -Uri "https://api.telegram.org/bot$MyBotKey/sendPhoto?chat_id=-XXXXXXXXX&quot

                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] Get-Recipient Filter

                  when using a variable in -Filter the Filter will not applied.

                  Get-Recipient -Filter {EmailAddresses -like 'smtp:test@mail.com'}
                  --> is working

                  $EmailAddress = 'smtp:test@mail.com'
                  Get-Recipient -Filter {EmailAddresses -like $EmailAddress}
                  --> is not working

                  $PSVersionTable

                  Name Value
                  ---- -----
                  PSVersion 4.0
                  WSManStackVersion 3.0
                  SerializationVersion 1.1.0.1
                  CLRVersion 4.0.30319.36399
                  BuildVersion 6.3.9600.18773
                  PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
                  PSRemotingProtocolVersion 2.2

                  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 →
                  • PowerShell Classes should allow properties with get and set

                    PowerShell classes should more closely mirror the abilities of a C# class imported and allow full differentiation between fields and properties. Properties should allow getter and setter code blocks

                    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                    • Get-Credential does not support Smart Card user name hints

                      If you utilize Smart Cards with certificates that are not directly linked to users (no suitable user DN in Subject and no UPNs in SANs), you are able to link a single certificate to multiple accounts dynamically with the caveat that users need to provide explicit user name hints during logon in order to log on.

                      User name hints need to be enabled via GPO or registry settings ("X509HintsNeeded"), after which all standard credential dialogs in Windows support them, except PowerShell's Get-Credential. This effectively prevents using PowerShell remoting with such Smart Cards / certificates if different credentials are required.

                      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

                        0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                      • [Bug] Windows Management Framework 5.1, ExecutionPolicy set via "User Configuration" (Group Policy) does NOT apply to the "UserPolicy" scope

                        [Bug] On Windows Management Framework 5.1, ExecutionPolicy set via "User Configuration" (Group Policy) does NOT apply to the "UserPolicy" scope (defaults to "Undefined") on OSs other than Windows 10 and Windows Server 2016

                        Affected operating systems:
                        Windows Server 2012 (confirmed)
                        Windows Server 2008 R2 (confirmed)
                        Windows 8.1 (unconfirmed)
                        Windows 8 (unconfirmed)
                        Windows 7 SP1 (confirmed)

                        Explanation:
                        I want to set ONLY the UserPolicy ExecutionPolicy scope to be "Restricted" and leave the MachinePolicy ExecutionPolicy scope as "Undefined" so that it isn't overriding the UserPolicy scope. This will allow the "Builtin\System" \ "NT Authority\System" \ "%ComputerName%$" account to run scripts but NOT…

                        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 →
                        • BUG:Powershell New-WBBackupTarget losing its setting when using Add-WBBackupTarget

                          I am using the first example in the syntax box from here:
                          https://technet.microsoft.com/en-us/library/jj873971(v=wps.630).aspx

                          The description for PreserveExistingBackups confuses me a bit, since its mentioning network shares, but the syntax example is for a disk location. I think I need it for the disk location, so I tried with the lines below.

                          Set-WBPerformanceConfiguration -OverAllPerformanceSetting AlwaysFull
                          $policy = New-WBPolicy
                          $disks = Get-WBDisk
                          $backupLocation = New-WBBackupTarget - Disk $disks[12] -PreserveExistingBackups $true -Label "Backup"
                          Add-WBBackupTarget -Policy $policy -Target $backupLocation

                          If I singlestep the script then everything looks fine after I have initialized the variable $backupLocation. The PreserveExistingBackups are set to true, when I recall…

                          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 →
                          • Wrong Output format in Jenkins 2.77

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

                            Jenkins 2.77

                            node('build') {
                            stage('From sharedlibrary') {
                            powershell 'Write-Output "Hello, World!"'
                            }
                            }
                            Output:

                            [QA_SharedLibrary] Running PowerShell script Hello, World!

                            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] Executing any Exchange 2007 powershell command after using test-connection results in a crash

                              Steps to reproduce:
                              1) test-connection <servername>
                              2) get-exchangeserver <servername>
                              (note: you can use any Exchange 2007 powershell command in step 2)

                              Platforms tested on:
                              W2k12/W7
                              Powershell 4
                              E2k7 RU15/RU21

                              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 →
                              • Out-GridView should not leave a trailing tab character when ctrl+c is used with only one data row present.

                                I wrote a script that takes a MAC address in any common format as input and outputs it to all other standard MAC formats. This is all in a single row of data and is meant to be a convenient tool for working between systems that use different formats of MACs without having to constantly reformat them by hand. However, when copying the output from the gridview a trailing tab is placed at the end of the MAC even though there is only a single row in the view and no tabs in the original text. It's like it is…

                                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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                • powershell_ise has stopped working

                                  Problem Description:
                                  I installed KB3134760 update in Server 2008. The powershell_ise has stopped working. Does anyone have the same problem?
                                  Thanks

                                  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 →
                                  • Change validation error wording when using [ValidateCount()]

                                    When I run a simple function, like the following, I get an error, as expected that I've exceeded the number of values I can specify for the function parameter(-ComputerName). The wording says that I need to "Provide fewer than 3 arguments...". Because I can specify up to 3 arguments, I think the wording needs to change to say something like "Provide no more than 3 arguments,..." or "Provide 3 arguments, or less,...".

                                    Function Get-OSInfo
                                    {
                                    [CmdletBinding()]
                                    Param
                                    (
                                    [ValidateCount(1,3)]
                                    [string[]] $ComputerName
                                    )
                                    Get-WmiObject -Class Win32_OperatingSystem -ComputerName $ComputerName
                                    }
                                    Get-OSInfo -ComputerName 'one','two','three','four'

                                    Get-OSInfo : Cannot validate argument on parameter 'ComputerName'. 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 →
                                    • ordered class

                                      Cannot declare [ordered] fields/properties in script classes

                                      The following fails to work as expected, in multiple ways:

                                      Class Foo { [ordered] $myfield }

                                      When executing directly from an interactive shell, the output is:

                                      An error occurred while creating the pipeline.
                                      + CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
                                      + FullyQualifiedErrorId : RuntimeException

                                      When executed from a script via ". .\myscript.ps1" the error is:

                                      Value cannot be null.
                                      Parameter name: type
                                      At line:1 char:1
                                      + . .\myscript.ps1
                                      + ~~~~~~~~~~~~~~~~
                                      + CategoryInfo : OperationStopped: (:) [], ArgumentNullException
                                      + FullyQualifiedErrorId : System.ArgumentNullException

                                      What I find especially interesting is that it 'line:1 char:1' regardless of…

                                      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 →
                                      • Inconsistant handling of native command stderr

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

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

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

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

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

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

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

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

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

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

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

                                            We’ll send you updates on this idea

                                            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 17 18
                                          • Don't see your idea?

                                          Feedback and Knowledge Base