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. `Get-ChildItem <wildcard-path>` may fail in a directory with backticks

    The script shows the issue:

    --------------------

    # make directory with backticks and cd to it
    $null = mkdir '``test``'
    Set-Location -LiteralPath '``test``'

    # it fails "Cannot find path '...\`test`'
    Get-ChildItem *

    --------------------

    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 →
    • Need a way to enable CMD-like error handling

      When an attempt to run an EXE is made from within CMD, or from Windows Explorer, but this fails due to a missing DLL or missing export in a DLL (among other possible failures), a popup message is displayed that tells the interactive user the name of the missing DLL or information about the missing export.

      This behavior is not desirable in scripts, so the PowerShell designers have decided not to implement it; instead the execution continues and $LASTEXITCODE is set to something like 0xC0000135.

      This makes troubleshooting difficult, because from a PowerShell prompt there is (AFAIK) no way to…

      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 : WMF5 RTM Pull Server HTTPS

        I have setup new DSC Pull Server HTTPS with WMF 5 RTM on Windows server 2012 r2 .

        Any client with WMF 5 RTM installed is able to pull configuration from Pull Server without certificate installed on the machine .

        Even if AllowUnsecureConnection is set to $false in LCM .

        I have tested that on WMF 4.0 machines and I'm getting error if the certificate is not presented .

        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 →

          Mariusz,

          Thanks for the feedback!

          We are attempting to investigate this issue but need more details from you in order to make progress.

          Is the issue that you are running into as follows:
          - WMF 5. based DSC Pull Server configured with HTTPS and server certificate installed properly. I assume this is not a certificate issued by a trusted authority, correct?
          - A WMF 5.0 RTM client does not have the trusted SSL certificate installed in the trusted root folder and the client is able to successfully connect to the Pull Server.
          - A WMF 4.0 client fails to connect when it does not have the trusted root cert installed.

          Please let us know if this is or is not what you are experiencing.

          Thanks, again,

          MarkG

        • PowerShell async Invoke with only one explicit statement never report completion.

          If you have PowerShell object with only one statement and you explicitly called AddStatement at the end, then async invocation (BeginInvoke/EndInvoke) of that PowerShell object will never report completion.

          PowerShell version: 5.0.10586.0

          Reproduce:
          $PowerShell=[PowerShell]::Create().AddScript{}.AddStatement()
          $PowerShell.EndInvoke($PowerShell.BeginInvoke())

          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 →
          • Workflow: $using: modifier stops working in InlineScript blocks after a single-statement InlineScript when ErrorActionPreference is Stop

            Consider the following scenario:
            - a workflow sets $ErrorActionPreference to Stop
            - that workflow contains a single-statement InlineScript activity
            - the workflow is invoked targetting a remote server

            After the InlineScript activity executes, all subsequent InlineScript activities in _any_ workflow targetting that server lose access to workflow variables - all $using:varname expressions return empty values. This condition persists until the WinRM service is restarted on the target server.

            Putting any other statement inside the InlineScript seems to prevent the bug from occuring.

            Tested client / workflow host: PowerShell 4.0 on Windows 7 and 8.1
            Tested workflow target computers: PowerShell 2.0…

            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 →
            • Workflow: PWD variable not set during InlineScript execution when the workflow targets remote computers

              The PWD automatic variable is not set when the script block passed to InlineScript is executing within a workflow targetting a remote computer. Attempts to retrieve the variable (such as Get-Item Variable:\PWD) fail. The variable becomes present as soon as the first Set-Location statement is executed.

              This differs from both powershell.exe and standard PS remoting behavior, where the variable is present from the start.

              This issue breaks code which expects the PWD variable to always be available, such as IIS PowerShell Provider cmdlets (e.g. Get-WebApplication).

              Client / workflow host: WMF 4.0 on Windows 7, also tested on 8.1
              Workflow target:…

              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 →
              • Add snippet support to the console as well

                Votes from Connect: 3

                Original Date Submitted: 1/30/2015 5:06:50 AM

                Description:
                ********Contact Information********
                Handle: Stephen Owen
                Site Name: PowerShell
                Feedback ID: 1107509
                ***************************************

                Frequency: Always Happens
                Regression: I don

                Problem Description:
                Now that I've gotten used to ISE-Snippets, I love them and I have a huge selection of them to help me with calculated properties, custom objects, and things like that. I'd love to be able to use ISE-Snippets in the PowerShell console as well.

                We can already hit F7 to see a list of the last 40 or so commands in our window. How about adding a similar window…

                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 →
                • WMF 5 May Preview - PowerShellGet Nuget.exe won't launch when running as SYSTEM

                  Votes from Connect: 4

                  Original Date Submitted: 7/18/2014 5:22:57 AM

                  Description:
                  ********Contact Information********
                  Handle: R Jason Morgan
                  Site Name: PowerShell
                  Feedback ID: 922914
                  ***************************************

                  Frequency: Always Happens
                  Regression: No, this is new to the most recent version

                  Problem Description:
                  When you install the WMF 5 May preview on Windows 8.1 enterprise with update x64, KB2894868-x64, the nuget.exe file that gets placed at %winddir%\System32\config\systemprofile\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\nuget.exe doesn't work. This issue is noticeable when you try and run the find and install *-Module cmdlets as SYSTEM. Specifically you notice it when trying to use them in DSC, like with cPSGet.

                  I've added a link…

                  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 →
                  • Parameter validation

                    Votes from Connect: 5

                    Original Date Submitted: 2/6/2015 3:54:49 PM

                    Description:
                    ********Contact Information********
                    Handle: edi89
                    Site Name: PowerShell
                    Feedback ID: 1117495
                    ***************************************

                    Frequency: Always Happens
                    Regression: I don't know if this issue existed previously

                    Problem Description:
                    Using paramter validation in functions works just find - something like this:
                    function test{
                    Param (
                    [ValidateRange(3,8)]
                    [Int] $mytest )

                    write-host $mytest
                    }
                    test 4
                    test 9
                    The problem is, that it seems, that parameter validation is in fact just a special case of variable validation which leads to the circumstance, that the variable used (in this case $mytest) is beeing validated every time…

                    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 →
                    • Using Find-Module -Tag DSC with Install-Module causes the PowerShell Console to hang

                      Votes from Connect: 4

                      Original Date Submitted: 5/29/2015 3:12:46 AM

                      Description:
                      ********Contact Information********
                      Handle: azhskr
                      Site Name: PowerShell
                      Feedback ID: 1377521
                      ***************************************

                      Frequency: PowerShell
                      Regression: Find-Module -Tag DSC | Install-Module -> Hangs with no errors
                      Find-Module -Name xActiveDirectory | Install-Module -> Works

                      Problem Description:
                      Find-Module -Tag DSC | Install-Module just hangs in the PowerShell Console. There is no error displayed and I have let it sit for 20 minutes before I finally had to close the console and reopen it. If I run the command Find-Module -Name xActiveDirectory | Install-Module it works as expected.

                      Product Studio item created by Connect…

                      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 →
                      • Receive-Job Example 4 is wrong

                        Votes from Connect: 3

                        Original Date Submitted: 2/10/2015 9:29:49 AM

                        Description:
                        ********Contact Information********
                        Handle: June Blender
                        Site Name: PowerShell
                        Feedback ID: 1122497
                        ***************************************

                        Frequency: Always Happens
                        Regression: Yes, this happens in all previous versions

                        Problem Description:
                        Example 4 of Receive-Job (the one with the $Using scope modifier) fails because the local variable ($j) holds a deserialized job object that Receive-Job can't convert.

                        Please change the example to:

                        $s = New-PSSession -ComputerName 'MyRemoteServer'
                        $j = Invoke-Command -Session $s -ScriptBlock {Start-Job -ScriptBlock {Get-Eventlog -LogName System}}
                        $iid = $j.InstanceID
                        $results = Invoke-Command -Session $s -ScriptBlock {Receive-Job -InstanceID $Using:iid}

                        Thanks (and sorry about 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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                        • Add "Finalize" verb to list of allowed noun-verbs.

                          Votes from Connect: 4

                          Original Date Submitted: 7/23/2014 12:47:50 PM

                          Description:
                          ********Contact Information********
                          Handle: Sh0gun
                          Site Name: PowerShell
                          Feedback ID: 926911
                          ***************************************

                          Frequency: Always Happens
                          Regression: No, this is new to the most recent version

                          Problem Description:
                          I would like to suggest the verb: "Finalize" as the opposite of "Initialize"

                          Product Studio item created by Connect Synchronizer due to creation of feedback ID 926911 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=926911).

                          Repro Steps:
                          The verb does not exist currently.

                          Expected Results:

                          Internal BugId: 8908

                          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 →
                          • Flags Enumeration Bitwise Operations Fail With 'Specified cast is not valid' Error

                            Votes from Connect: 3

                            Original Date Submitted: 2/19/2015 11:08:09 PM

                            Description:

                            ********Contact Information********
                            Handle: Rohn Edwards
                            Site Name: PowerShell
                            Feedback ID: 1138469
                            ***************************************

                            Frequency: Always Happens
                            Regression: No, this is new to the most recent version

                            Problem Description:
                            In the December 2014 and February 2015 WMF 5.0 previews, flags enumerations that have byte, sbyte, short, or ushort underlying types have to be cast or coerced to a numeric type before -band, -bor, or -bxor bitwise operations will work.

                            int, uint, long, and ulong underlying types still work as expected.

                            Product Studio item created by Connect Synchronizer due to creation 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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                            • Deep nested workflows don't recognize the erroraction parameter

                              Votes from Connect: 5

                              Original Date Submitted: 3/2/2015 8:58:03 PM

                              Description:
                              ********Contact Information********
                              Handle: Trond Hindenes
                              Site Name: PowerShell
                              Feedback ID: 1156994
                              ***************************************

                              Frequency: Always Happens
                              Regression: I do not know if this issue existed previously

                              Problem Description:
                              If a workflow uses deep nesting (at least 3 levels of nesting), erroraction does not work. This is reproducable in both the V4 and V5 feb preview of the WMF.

                              Product Studio item created by Connect Synchronizer due to creation of feedback ID 1156994 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1156994).

                              Repro Steps:
                              Consider the following 3 workflows
                              workflow one
                              {
                              Write-Output "one"
                              }

                              workflow two …

                              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 does not accept all valid integer literals when accepting parameters interactively.

                                Votes from Connect: 5

                                Original Date Submitted: 6/2/2015 10:28:19 PM

                                Description:
                                ********Contact Information********
                                Handle: uniquedisplaynameformypublicprofile
                                Site Name: PowerShell
                                Feedback ID: 1392738
                                ***************************************

                                Frequency: PowerShell
                                Regression: Create the function:
                                function Foo {
                                param([Parameter(mandatory)][int]$Bar)
                                "OK - $Bar"
                                }

                                This works:
                                Foo -Bar 1KB
                                (prints: OK - 1024)
                                Foo -Bar 1L
                                (prints: OK - 1)

                                But this fails:
                                Foo
                                cmdlet Foo at command pipeline position 1
                                Supply values for the following parameters:
                                Bar: 1KB
                                (prints: Cannot recognize "1KB" as a System.Int32 due to a format error.)
                                Bar: 1D
                                (prints: Cannot recognize "1L" as a System.Int32 due to a format error.)

                                Problem Description:
                                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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                • Add DefaultValue property to System.Management.Automation.CommandParameterInfo class

                                  Votes from Connect: 8

                                  Original Date Submitted: 3/3/2015 5:52:55 AM

                                  Description:
                                  ********Contact Information********
                                  Handle: June Blender
                                  Site Name: PowerShell
                                  Feedback ID: 1157696
                                  ***************************************

                                  Frequency: Always Happens
                                  Regression: Yes, this happens in all previous versions

                                  Problem Description:
                                  Currently, there is no way to detect whether a command parameter has a default value or what the default value is. It's important to help authoring and to command parsing.

                                  I can use the AST to get the default value, but that works only for functions and scripts; not for cmdlets.

                                  Product Studio item created by Connect Synchronizer due to creation of feedback ID…

                                  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 Local Configuration Manager is not configured with a certificate.

                                    Votes from Connect: 4

                                    Original Date Submitted: 6/5/2015 1:21:21 AM

                                    Description:
                                    ********Contact Information********
                                    Handle: Bob Dean IT Pro
                                    Site Name: PowerShell
                                    Feedback ID: 1399853
                                    ***************************************

                                    Frequency: Desired State Configuration (DSC)
                                    Regression: Build the LCM meta configuration.
                                    Apply the LCM meta configuration to the target node.
                                    Execute update-dscconfiguration on the target node.

                                    Problem Description:
                                    ## The configuration for the LCM.

                                    [DscLocalConfigurationManager()]
                                    Configuration Meta
                                    {

                                    Node $AllNodes.NodeName
                                    {
                                    Settings
                                    {
                                    RefreshFrequencyMins = 30
                                    RefreshMode = "PULL"
                                    ConfigurationModeFrequencyMins = 60
                                    AllowModuleOverwrite = $true
                                    RebootNodeIfNeeded = $true
                                    ActionAfterReboot = "ContinueConfiguration"
                                    ConfigurationMode = "ApplyAndMonitor"

                                    }

                                    ConfigurationRepositoryWeb PullServer
                                    {
                                    ServerURL = $Node.PullServer
                                    RegistrationKey = "My Registration…

                                    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 →
                                    • ISE for PowerShell Web Access

                                      Votes from Connect: 4

                                      Original Date Submitted: 6/5/2015 7:13:41 PM

                                      Description:
                                      ********Contact Information********
                                      Handle: William E. Anderson
                                      Site Name: PowerShell
                                      Feedback ID: 1402139
                                      ***************************************

                                      Problem Description:
                                      You know, it'd be kind of nice to be able to have a version of the Integrated Scripting Engine available as an installable feature for PowerShell Web Access. There's been a couple of times where a thought of how to script something popped into my head and all I had was my phone. Word for mobile doesn't really give me what I would like for building scripts in this way.

                                      Product Studio item created…

                                      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 Closes for no reason

                                        Votes from Connect: 6

                                        Original Date Submitted: 6/12/2015 2:25:25 AM

                                        Description:
                                        ********Contact Information********
                                        Handle: David Bernard
                                        Site Name: PowerShell
                                        Feedback ID: 1423742
                                        ***************************************

                                        Frequency: PowerShell
                                        Regression: Type in:

                                        [datetime]$this = "adfasfasfadsf"

                                        Problem Description:
                                        I'm running PowerShell 4.0 on Windows 7 (x64). If I enter:

                                        [datetime]$this = "adfasfasfadsf"

                                        I would expect to receive a conversion error, but instead the console just closes.

                                        Product Studio item created by Connect Synchronizer due to creation of feedback ID 1423742 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1423742).

                                        Repro Steps:
                                        Type in:

                                        [datetime]$this = "adfasfasfadsf"

                                        Expected Results:
                                        This should generate a conversion error.

                                        Internal BugId: 15561

                                        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 →
                                        • Enable authoring of DSC resources using c# in a similar way as with ps classes

                                          Votes from Connect: 3

                                          Original Date Submitted: 3/12/2015 9:51:57 PM

                                          Description:
                                          ********Contact Information********
                                          Handle: aL3891
                                          Site Name: PowerShell
                                          Feedback ID: 1175982
                                          ***************************************

                                          Problem Description:
                                          We're now able to write DSC resources using classes in powershell and that is really great!

                                          Please also enable writing resources in c# in a similar way using a single class and attributes to mark properties and methods as their DSC equivalent. that would reduce alot of the friction for developers coming in to DSC from c#

                                          Product Studio item created by Connect Synchronizer due to creation of feedback ID 1175982 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1175982).

                                          Repro Steps:

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

                                          Feedback and Knowledge Base