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. PowerShell StackOverFlowException: get-childitem -path HKLM:\ -recurse -include *Windows*

    PowerShell has a bug in it which causes a "StackOverFlowException" when running the following command:
    get-childitem -path HKLM:\ -recurse -include *Windows*

    It was originally reproduced while looking for something different than:
    Windows

    This is consistently reproducible in latest updates applied of Windows 10 x64 Business and Home, with both PowerShell.exe, and ISE, x86 and standard.

    $PSVersionTable.PSVersion

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

    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 →
    • Fix LoadDefaultTypesFiles when using out of process runspace

      Fix for "Object reference not set to an instance of an object." when using LoadDefaultTypeFiles() with out of process runspace

      Reproduce:
      TypeTable.LoadDefaultTypeFiles()

      Reproduce underlying cause:
      Copy C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml to another name and run:
      var typeTable = new TypeTable(new List<string> { @"C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types-debug.ps1xml" });
      Console.WriteLine(typeTable);

      The error is:
      "There were errors loading TypeTable. Look in the Errors property to get detailed error messages."
      , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types-debug.ps1xml(3003) : Error in type "System.Security.AccessControl.ObjectSecurity": The "Type" node must have "Members", "TypeConverters", or "TypeAdapters".
      , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types-debug.ps1xml(3036) : Error: CodeProperty should use a getter or setter method.
      , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types-debug.ps1xml(3037) : Error: Unable to find type [Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase].
      , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types-debug.ps1xml(3029) :…

      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 →
      • 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 →
        • Notification option for authors when publishing to PS Gallery

          When an author publishes an update to their module hosted on the gallery it should provide an option to push a notification to their configured social media accounts.

          So an author configures Twitter and LinkedIn profiles on their account/profile. A configuration option within the module being published should allow for a setting that will push a notification to their social media, on their behalf, announcing a new release of that module.

          5 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  ·  PowerShell Gallery  ·  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 →
            • 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 →
              • code execution not synchronously when using "| Select-Object...."

                When using " | Select-Object......" then code execution behave like it's not running synchronously.
                Example:
                Get-WmiObject Win32_NetworkAdapter | Where-Object {$_.PhysicalAdapter -eq $true} | Select-Object DeviceID, Name
                Read-Host "Press key to continue"

                The result will be printed AFTER the Read-Host command, nut before as you would expect.

                A workaround is to add " | Out-Host"

                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 →
                • PSCredential prompts for credentials even without Credential() attribute.

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

                  ```powershell
                  function Test-CredentialAsString {
                  Param (
                  [Parameter()]
                  [PSCredential]$Credential
                  )
                  $Credential.UserName
                  }
                  Test-CredentialAsString -Credential 'usernameAsString'
                  ```

                  Expected behavior
                  -----------------

                  Error:
                  ```none
                  Test-CredentialAsString : Cannot process argument transformation on parameter 'Credential'. Cannot convert the "usernameAsString" value of type "System.String" to type "System.Management.Automation.PSCredential".
                  ```
                  Actual behavior
                  ---------------

                  Prompts user for credentials (i.e. the same behaviour we'd expect had the `[System.Management.Automation.Credential()]` attribute been used.

                  Environment data
                  ----------------

                  ```powershell
                  > (Get-WmiObject -class Win32_OperatingSystem).Version
                  6.1.7601
                  ```

                  ```powershell
                  > $PSVersionTable
                  Name Value
                  ---- -----
                  PSVersion 5.1.14409.1012
                  PSEdition Desktop
                  PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
                  BuildVersion 10.0.14409.1012
                  CLRVersion 4.0.30319.42000
                  WSManStackVersion 3.0
                  PSRemotingProtocolVersion 2.3
                  SerializationVersion 1.1.0.1 …

                  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 →
                  • Behaviour of `System.Management.Automation.Credential()` in NonInteractive session

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

                    **Demo.ps1**

                    ```powershell
                    function Test-CredentialAttribute {
                    Param (
                    [Parameter()]
                    [System.Management.Automation.PSCredential]
                    [System.Management.Automation.Credential()]
                    $Credential
                    )
                    $Credential.UserName
                    }
                    Test-CredentialAttribute -Credential 'usernameAsString'
                    ```

                    ```batchfile
                    powershell -noninteractive -file "c:\somewhere\Demo.ps1"
                    ```

                    Expected behavior
                    -----------------

                    Error:
                    ```none
                    Test-CredentialAttribute : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
                    ```

                    Actual behavior
                    ---------------

                    Prompts user for credentials (i.e. the same behaviour we'd expect had the command been run in interactive mode.

                    Environment data
                    ----------------

                    ```powershell
                    > (Get-WmiObject -class Win32_OperatingSystem).Version
                    6.1.7601
                    ```

                    ```powershell
                    > $PSVersionTable
                    Name Value
                    ---- -----
                    PSVersion 5.1.14409.1012
                    PSEdition Desktop
                    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
                    BuildVersion 10.0.14409.1012
                    CLRVersion 4.0.30319.42000 …

                    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 →
                    • [Suggestion] Include Universal Dashboard features

                      How about include in PowerShell Engine, the excellent features of Universal Dashboard by Adam Driscoll ?

                      - Design of web dashboard using Powershell cmdlets
                      - REST API exposure using Powershell cmdlets

                      https://www.powershellgallery.com/packages/UniversalDashboard/
                      https://poshtools.com/powershell-universal-dashboard/

                      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 →
                      • new-service, assign virtual service account

                        When creating a new service, I would like to set the user account to a virtual service account. Since the -Credential parameter expects a PSCredential object, which doesn't seem to accept predefined local accounts at all, this isn't currently possible.

                        Having a -VirtualAccount switch would be great.

                        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: Preserve the current directory name as stored in the filing system and not as entered by the user

                          The PowerShell console uses the path as entered by the user and not as stored in the filing system. This is inconsistent with the Command Console behaviour and causes applications that rely on the correct casing of the path to fail. IMHO the console should be case insensitive when searching for fils system paths but should preserve the case when returning the file path.

                          0 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-MpPreference .AttackSurfaceReductionRules_Actions returns incorrect value(s)

                            Get-MpPreference .AttackSurfaceReductionRules_Actions returns incorrect value(s) compared to registry. Specifically a value of 2 is always returned for rule id BE9BA2D9-53EA-4CDC-84E5-9B1EEEE46550. There may be other anomalies that I haven't yet found for different rule id's.

                            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 →
                            • copy-item progress

                              Add an optional switch to show the progress of an ongoing copy operation. Could be useful for large operation. Basically replicate as much information as the Explorer does, without the performance graph.

                              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  ·  PowerShell Engine  ·  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 →
                                • [bug]register-scheduledjob and new-jobtrigger bug report

                                  If I scheduled a job for weekly running on specific days it will always fail with error code Task Scheduler stopped instance "{[GUID]}" of task "\Microsoft\Windows\PowerShell\ScheduledJobs\[myjob]" as request by user [my windows logon]

                                  However the job works with the -daily switch. It only fails with -daysofweek

                                  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 →
                                  • 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 →
                                    • 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 →
                                      • Disable SSL CRL check on Linux boxes

                                        I tried to follow "How to Script Disabling CRL Checking With Netsh and Powershell" guide: (https://blogs.msdn.microsoft.com/timomta/2013/06/24/how-to-script-disabling-crl-checking-with-netsh-and-powershell/)
                                        However netsh is not available on Powershell 6.0.0-alpha Linux version. Could you provide me an alternative?

                                        Regards,

                                        ~~~
                                        PS /root> $PSVersionTable

                                        Name Value
                                        ---- -----
                                        PSVersion 6.0.0-alpha
                                        PSEdition Core
                                        PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
                                        BuildVersion 3.0.0.0
                                        GitCommitId v6.0.0-alpha.14
                                        CLRVersion
                                        WSManStackVersion 3.0
                                        PSRemotingProtocolVersion 2.3
                                        SerializationVersion 1.1.0.1

                                        PS /root> netsh netsh : The term 'netsh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
                                        of the name, or if a path was included, verify that…

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

                                          Possible Bug WFM 5.1 with WinRM via Command line. (Can provide Screenshots of issue)

                                          When trying to authenticate to WinRM via command line receive the following error using password with ^ as a special character.

                                          Example Command:

                                          winrm id -r:https://servname:5986 -a:Kerberos -u:serviceaccount@localdomain.local -p:gt^qB%CxkaSQ -encoding:utf-8

                                          Error:
                                          WSManFault
                                          Message = The user name or password is incorrect.

                                          Error number: -2147023570 0x8007052E

                                          When change ^ to ! receive the following output:

                                          C:\Users\shawns>winrm id -r:https://servername:5986 -a
                                          :Kerberos -u:serviceaccount@localdomain.local -p:gt!qB%CxkaSQ -encoding:ut
                                          f-8
                                          IdentifyResponse
                                          ProtocolVersion = http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
                                          ProductVendor = Microsoft Corporation
                                          ProductVersion = OS: 6.3.9600 SP: 0.0 Stack: 3.0
                                          SecurityProfiles
                                          SecurityProfileName = …

                                          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  ·  WinRM  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 62 63
                                          • Don't see your idea?

                                          Feedback and Knowledge Base