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. Keep/Do not reset PowerShell settings on Windows upgrade

    Keep fonts, colors, sizes etc on Windows upgrade.

    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 →
    • Test-Path returns false for quoted path

      Test-Path returns false for valid paths contained within quotes. See example below. Due to the frequent need to quote paths containing spaces, this leads to needless bugs.

      Repro follows.

      PS C:\WINDOWS\system32> Test-Path 'C:\Windows\System32\ntdll.dll'
      True

      PS C:\WINDOWS\system32> Test-Path '"C:\Windows\System32\ntdll.dll"'
      False

      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 →
      • 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 →
        • Convert ToBase64 causes excessive memory usage

          Converting most files (200 KB+) causes large memory usage. For instance, a 611 KB photo (one found in /Web/Wallpaper/Theme1) takes up 1 GB of RAM in PS.

          [convert]::ToBase64String((get-content $path -encoding byte))

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

            We’ll send you updates on this idea

            0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
          • Add spelling correction to ISE when writing strings

            Can you make ISE use some spelling correction when editing a string? Better, use MS Word's engine which can detect grammatical mistakes!

            This will save a lot of embarrassment!

            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 →
            • PowerShell Crash Get-NetFirewallProfile when run as service

              PowerShell crashes when running "Get-NetFirewallProfile | Select-Object LogFileName" by a windows service. In my case it was check_mk through a monitoring plugin.

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

                We’ll send you updates on this idea

                0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
              • Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed

                We are experiencing about 12 minutes wait time to start Powershell session because of disconnected network drive that didn't get clean up properly. It would be helpful for PowerShell to support ignoring drive or allow for timeout setting so we don't have to wait that long.

                C:\Users\keatchan>time /t & powershell get-date
                09:07 PM
                Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.

                Wednesday, October 18, 2017 9:19:05 PM

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

                  We’ll send you updates on this idea

                  0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                • Extend get-childitem with support for file systems exposed via WEBDAV, SFTP, FTP, HTTP

                  Extend get-childitem with pluggable support for file systems exposed via HTTP, SCP, SFTP, FTP, WEBDAV.

                  Meanwhile, still using curl and custom scripting.

                  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 →
                  • 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 →
                      • We need a proper set of built-in, easy-to-use, dedicated registry cmdlets

                        Managing registry keys and values on local and remote systems with PowerShell is a pain.

                        Reviewing the articles, forums and blogs on the Internet clearly shows that new PowerShell users struggle to understand how to use registry provider drives and the cmdlets like New-Item, Get-ItemProperty, New-ItemProperty, and so on. This has prompted the creation of a variety of home-brew modules and functions to deal with the problem, like this one, which is extremely useful, but is not built into PowerShell by default of course:

                        https://gallery.technet.microsoft.com/RegistryLibrarypsm1-b38a81ba

                        PowerShell needs a proper set of built-in, dedicated registry cmdlets that 1) are easy to…

                        26 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

                          4 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                        • Command line parsing bug: spaces and trailing slash

                          There appears to be a bug parsing arguments to EXEs. If you pass a properly-quoted path that has spaces and a trailing slash, the rest of the command is lumped into the same argument. This also happens if you use a PowerShell variable to hold the path string.

                          To repro, first, install EchoArgs.exe (if using chocolatey: cinst -y echoargs). It demonstrates what arguments would get passed to any exe.

                          Then run:

                          PS> & EchoArgs "C:\spaces and trailing slash\" more args

                          Echo args shows that it all got lumped into one argument:

                          Arg 0 is <C:\spaces and trailing slash" more args>

                          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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                          • [Issue] Get-MessageTrace pipe to Get-MessageTraceDetail

                            I got some weird data when running below cmdlet

                            Get-MessageTrace -StartDate "09/11/2017 00:00:00" -EndDate "09/15/2017 00:00:00" -PageSize 10 -Page 1 | Get-MessageTraceDetail | Select-Object Date, MessageTraceID, Event, Data, Detail | Out-GridView

                            It seems the last event of the first MessageTraceID keeps repating itself and was added next to last event of the next MessageTraceID. And its data keep growing. Please see below image for the clear representation of the issue.
                            https://1drv.ms/i/s!AtOz2sztWjOapgIwkbjyq-sy4_jm

                            Below image is the correct MessageDetail of MessageTraceId 2b87f940-0eee-4c39-71a9-08d4f9757430
                            https://1drv.ms/i/s!AtOz2sztWjOapgPFCL102diF6jRz

                            And below image is the correct MessageDetail of MessageTraceId f602c9c7-2a5b-4a5a-1256-08d4f8e9ba58
                            https://1drv.ms/i/s!AtOz2sztWjOapgSFXfJiKurb23w0

                            Can you please check why it is happening?

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

                              We’ll send you updates on this idea

                              1 comment  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                            • using module <Module> does not work as expected

                              I have a problem with loading classes from a module.

                              Script is just two lines as following:
                              using module AzureAD
                              class TestClass { [Microsoft.Open.AzureAD.Model.Application] static DoIt() { return $null; } }

                              If I run this, using .\Script.ps1 I get the following error:
                              At C:\path\Script.ps1:3 char:20
                              + class TestClass { [Microsoft.Open.AzureAD.Model.Application] static D ...
                              + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              Unable to find type [Microsoft.Open.AzureAD.Model.Application].
                              + CategoryInfo : ParserError: (:) [], ParseException
                              + FullyQualifiedErrorId : TypeNotFound

                              However, if I run "using module AzureAD" from the command line first and then run the script, it works fine...

                              What is the difference in running using module from…

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

                                We’ll send you updates on this idea

                                0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                              • Powershell does not interpret set variables

                                Powershell has (optionally) replaced cmd as a standard shell in Windows 10.

                                However it is a pity that Powershell is not able to interpret commands that rely on usage of variables that are defined in "set"

                                like %computername%, %windir%, %userprofile%, %appdata% etc
                                etc

                                Please respect your own system variables in use for decades Microsoft. Thank you a lot.
                                There must be way without breaking this.

                                try issuing a simple

                                cd %appdata%

                                in powershell (often used in KB articles), good luck and have fun (or not).

                                Imho while I could understand limitations this is pretty odd.

                                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

                                  5 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                • active directory get-adcomputer FQDN

                                  get-adcomputer accepts FQDNs for the "server" (domain controller) parameter, but doesn't accept them for the "identity" (the adcomputer i'm trying to get-) parameter.

                                  so

                                  get-adcomputer -identity domaincontroller
                                  get-adcomputer -identity domaincontroller -server domaincontroller
                                  get-adcomputer -identity domaincontroller -server domaincontroller.domain.com

                                  all work.

                                  get-adcomputer -identity domaincontroller.domain.com

                                  does not work.

                                  what's the logic there?

                                  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 : 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 →
                                    • How do I download modules manually from gallery behind a firewall/proxy?

                                      For companies like banks which are very restrictive regarding internet downloads, I have no internet connectivity directly from powershell, only from my browsers. As such I cannot use install-module from powershell.

                                      Our desktops are only windows 7 but locked down running ps version 2 and powershell console doesn't have proxy access. I cannot run install-module on my servers neither as my servers have no internet connection.

                                      Is there a workaround to download a module manually as a zipped file so that I can I unzip and install them manually in my server?

                                      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  ·  Microsoft.PowerShell.* Modules  ·  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 →
                                        • PS 5 assigning to list value while PS 4 isn´t

                                          Hi!

                                          We recently got WMF 5.1 (KB3191566) that included PS 5.
                                          We then began finding differences in the behavior of PS 5 and PS 4 when running our scripts. The result was different.

                                          We didn´t notice this problem since someone wrapped it in a try catch block... So to recreate this issue/bug I made this script and ran it on one host with PS 5 and one VM host on PS 4.

                                          add-type -Language CSharpVersion3 -TypeDefinition @"
                                          public class TestClass
                                          {
                                          public System.Collections.Generic.List<System.Int32> listObject { get; set; }
                                          }
                                          "@

                                          [string]$string = "1"

                                          $classWithList = New-Object TestClass

                                          $classWithList.listObject = $string

                                          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 →
                                          • Don't see your idea?

                                          Feedback and Knowledge Base