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. [datetime] type accelerator only uses en-US culture

    The [datetime] when used as a type accelerator only uses the en-US culture and therefore other date formats either error out or they are interpreted incorrectly, This makes using the ConvrtFrom-String difficult when adding type accelerators to automatically discover the property type from text. If we use the Get-Date command then the correct culture is used. It appears to be just the [datetime] type accelerator that is not consistent with this? Please fix!!

    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

      1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    • Remove the implied Get- verb

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

      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

        3 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
      • RMDIR bug - causing "Access is denied"

        :** z:\ca\WinRdBug.cmd *** L=001 --- 2017/12/05 13:02:28
        : The RMDIR command has a bug that, as well as not working,
        : causes the target directory to become inaccessible.
        : i.e. operation on it all result in "Access is denied" or similar :messages.

        : The problem is easily demonstrated using the sequence of :commands below.

        : This bug is causing significant inconvenience and we need a fix or
        : reasonable work-around quickly please. (just upgraded to Win10
        : from XP where this is not an issue).

        mkdir c:\t1229
        echo *** >c:\t1229\x.x
        type c:\t1229\x.x
        rmdir c:\t1229 /s /q
        type c:\t1229\x.x
        pause

        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 →
        • Include function to show bytes human readable like linux.

          In Linux in many commands like "ls", "df", and other have an option to show bytes sizes in human readable formats (bytes, KB, MB, GB, TB, etc).
          In powershell is necessary to create a function to do this.
          Would be interesting create some function to powershell convert the bytes value in the human readable value.

          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 →
          • Change default font of PS on OSX

            on OSX, the shell is white, not black or blue.

            The yellow is a really bad UI implementation.

            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: WMF 5.1 breaks SFC on Windows 8.1, and SFC might breaks DSC

              After installing WMF 5.1 in Windows 8.1 / Server R12, running SFC integrity scan reports and "repairs" couple of localized DSCResources files
              but it actually replaces new WMF 5.1 files with inbox DSCResources files, which would breaks DSC on non-english systems

              this happens because the files are referenced (shared) in two different WinSxS components
              in inbox Windows 8.1 the files are contained in:
              Microsoft.PowerShell.DSC.Resources
              but in WMF 5.1 they are now contained in:
              Microsoft.PowerShell.DSCResources.Resources
              hence the inbox files are not considered superseded, and SFC tries to restore them

              this issue is similar to this one for Windows 7 (not Powershell…

              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: Loading a file with a class fails if the file's full path contains a comma

                Create a file, ClassExample.ps1 with the sample code below. Save the file in a location where the full path does not contain a comma.

                Class TestClass {
                [void] TestFunction ( [string]$Text = "" ) {
                Write-Host $Text
                }
                }
                $TestObj = New-Object TestClass
                $TestObj.TestFunction("Hello World!")

                Start a PS shell and run the script:

                PS C:\Users\don\Desktop\PSBug> .\ClassExample.ps1
                Hello World!

                Rename the folder or class file and include a comma in the new name and run the script again:

                PS C:\Users\llf\Desktop\PSBug> & '.\Class,Example.ps1'
                The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
                At line:1 char:1
                + & '.\Class,Example.ps1'
                +…

                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 →
                • PS showing more DNS records then the MMC snap-in

                  Get-DnsServerResourceRecord shows more records then the MMC snap-in for DNS shows.
                  In my case it shows records that were pre-2005 (NT4 domain, before switching to AD).

                  Forum topic over at Technet forums suggested to post here as well.
                  Sorry for the long link: https://social.technet.microsoft.com/Forums/en-US/1a920c4a-d82e-46f8-b0d9-8ed501e8e852/getdnsserverresourcerecord-shows-more-then-mmc?forum=winserveripamdhcpdns

                  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 →
                  • think about user profile - and make it so!

                    So, the case is that I work on a confidential system. I cannot login to any user account except mine. The is stated by the law. So I want to create user account, and make its profile to exist because I need to put some data to that user profile, lets say document folder. Is there any solution in PowerShell sorcery?

                    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 →
                    • The module nesting limit is imposed over the length of the module dependency chain

                      Currently (Powershell 5.1) there is a limit of 10 levels of module nesting. It is strange that this limit exists and is hard-coded (non configurable).

                      However, the real problem is that this limit is applied when importing the dependent modules (listed in the RequiredModules section in its .psd1 manifest). Apparently, when importing a module that the current one depends on, the dependent module is counted as "nested". So if you have a long enough dependency chain, you hit the limit of 10 eventually.

                      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-Item not accepting Credentials ends in error

                        I want to use "Invoke-Item" cmdlet with credentials but is not taking 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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                        • [BUG] help function output erased if executed from top console line

                          PSv3, PSv4, PSv5

                          Sample command is 'help about*esc*' executed from the top line on the console. The (write-progress) banner that appears during search does not reinstate the console text it was hiding at completion. Empty console lines appear instead yielding missing output

                          If command is re-executed (up arrow) from a line below the banner, it obviousely appears where it should.

                          Please note that the 'get-help about*esc*' command does not exhibit this buggy behaviour

                          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-Date handles slashes wrong

                            If I use the -format parameter with Get-Date, and provide slashes in the format string, the slashes are treated as hyphens in the output.

                            Get-Date -Format 'yyyy/MM/dd'
                            2017-11-08

                            I'm running on a US English WIndows 10 with Regional Settings set to Danish.

                            PS C:\> gcim win32_operatingsystem | % caption
                            Microsoft Windows 10 Pro
                            PS C:\> $PSVersionTable.PSVersion

                            Major Minor Build Revision
                            ----- ----- ----- --------
                            5 1 16299 19

                            Also, I've reproduced this on a Windows server 2012R2 machine:

                            PS C:\scripts> Get-Date -Format 'yyyy/MM/dd'
                            2017-11-08
                            PS C:\scripts> gcim win32_operatingsystem | % caption
                            Microsoft Windows Server 2012 R2 Standard
                            PS C:\scripts> $PSVersionTable.PSVersion

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

                                          Feedback and Knowledge Base