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. PS4.0: (Get-Variable MyInvocation -Scope 1).Value fails when powershell.exe run from MSBuild

    Votes from Connect: 3

    Original Date Submitted: 11/7/2014 10:07:44 PM

    Description:

    ********Contact Information********
    Handle: sba
    Site Name: PowerShell
    Feedback ID: 1023770
    ***************************************

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

    Problem Description:
    I have a script that contains the following code:

    --------------8<----------------
    function Get-ScriptDirectory{

    $Invocation = (Get-Variable MyInvocation -Scope 1).Value
    try {
    Split-Path $Invocation.MyCommand.Path -ea 0
    }
    catch {
    Write-Warning 'You need to call this function from within a saved script.'
    }
    }

    $scriptdir = Get-ScriptDirectory

    Set-Location $scriptdir -ErrorAction Stop
    --------------8<----------------

    (this originates from PS2.0 days)

    The script runs fine, except if it's run 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.exe -NonInteractive still prompts user with Out-GridView

      Votes from Connect: 4

      Original Date Submitted: 9/28/2015 2:16:15 AM

      Description:
      ********Contact Information********
      Handle: Trevor Sullivan [MVP]
      Site Name: PowerShell
      Feedback ID: 1842431
      ***************************************

      Frequency: PowerShell
      Regression: powershell.exe -NonInteractive -Command gps | ogv -PassThru

      Problem Description:
      PowerShell.exe -NonInteractive still prompts user with Out-GridView

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

      Repro Steps:
      powershell.exe -NonInteractive -Command gps | ogv -PassThru

      Expected Results:
      Out-GridView should throw similar exception to Read-Host:

      "read-host : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available."

      Internal BugId: 15852

      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 →
      • SCVMM and SCDPM PowerShell Modules can't work together

        Votes from Connect: 13

        Original Date Submitted: 5/14/2014 10:32:59 PM

        Description:
        ********Contact Information********
        Handle: Мухаметшин Наиль
        Site Name: PowerShell
        Feedback ID: 873348
        ***************************************

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

        Problem Description:
        Good day everyone!

        Very strange issue: when i try to load together Virtual Machine Manager 2012 and Data Protection Manager 2012 modules - script fails:

        PS C:\Windows\system32> ipmo virtualmachinemanager
        PS C:\Windows\system32> ipmo DataProtectionManager
        Import-Module : Could not load type 'Microsoft.Internal.EnterpriseStorage.Dls.Utils.AlertTypes.AlertEnum' from assembly
        'Utils, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
        At C:\Program Files\Microsoft System Center 2012 R2\DPM\DPM\bin\Modules\DataProtectionManager\DataProtectionManager.psm
        1:2 char:1
        + Import-Module (Join-Path $cmdletDllPath ObjectModelCmdlet.dll)
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo…

        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 →
        • Azure module conflict with Storage module

          Votes from Connect: 11

          Original Date Submitted: 6/5/2014 4:37:24 AM

          Description:
          ********Contact Information********
          Handle: keseph
          Site Name: PowerShell
          Feedback ID: 888873
          ***************************************

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

          Problem Description:
          Using the latest versions of the Azure PowerShell module from the Web Platform Installer on an otherwise-clean image of Windows Server 2012 R2 Datacenter from the Azure Gallery, you cannot import the Storage module after importing the Azure module. You receive a long string of errors starting with:
          ---
          PS C:\> Import-Module Storage
          Import-Module : Cannot process Cmdlet Definition XML for the following…

          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 →
          • Doubled double quotes in inline expressions within expandable strings

            Votes from Connect: 3

            Original Date Submitted: 6/23/2014 5:09:33 PM

            Description:
            ********Contact Information********
            Handle: Ivan Akcheurov
            Site Name: PowerShell
            Feedback ID: 903486
            ***************************************

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

            Problem Description:
            "Fancy string - Hor""ray"
            # outputs correctly (only one double quote): Fancy string - Hor"ray

            'Hor"ray'.Replace('"', '""')
            # outputs correctly (two double quotes): Hor""ray

            "Fancy string - $('Hor"ray'.Replace('"', '"'+'"'))"
            #outputs correctly (two double quotes): Hor""ray

            "Fancy string - $('Hor"ray'.Replace('"', '""'))"
            # outputs INCORRECTLY (only one double quote): Fancy string - Hor"ray

            In my opinion, developers would intuitively expect, that within "$(inline expressions)"…

            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 copy on write behavior depends on operator type

              Votes from Connect: 3

              Original Date Submitted: 5/18/2015 2:02:46 AM

              Description:
              ********Contact Information********
              Handle: Sergey Teplyakov
              Site Name: PowerShell
              Feedback ID: 1341920
              ***************************************

              Frequency: PowerShell
              Regression:

              Problem Description:
              PowerShell uses copy-on-write semantic for inner scopes.

              This means that if you'll change outer variable in the inner scope then inner scope would deal with it's own copy. Here is an example:

              $list = @(1, 2)

              Function Foo
              {
              "Foo: initial value - $list"
              $list = $list + 3
              "Foo: `$list: $list, `$global:list: $global:list"
              }
              The output would be:

              Foo: initial value - 1 2
              Foo: $list: 1 2 3, $global:list: 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 →
              • Class constructor returns instance when exception is thrown

                Votes from Connect: 7

                Original Date Submitted: 5/19/2015 2:43:00 AM

                Description:
                ********Contact Information********
                Handle: Trevor Sullivan [MVP]
                Site Name: PowerShell
                Feedback ID: 1345058
                ***************************************

                Frequency: PowerShell
                Regression: class BaconStrip {
                [string] $Length;
                [string] $Width;

                [ValidateSet('Cooked', 'Raw')]
                [string] $Status;

                [ValidateSet('Regular', 'Applewood', 'Smoked')]
                [string] $Type;

                BaconStrip([string] $Type) {
                $this.Type = $Type;
                }

                [void] Cook() {
                $this.Status = 'Cooked';
                }
                }

                ### Create a new BaconStrip instance with an invalid type
                $MyBaconStrip = [BaconStrip]::new('Regular2');

                ### This variable should be $null if an exception is thrown in the constructor
                $MyBaconStrip;

                Problem Description:
                In April 2015 Preview of WMF 5.0 (version: 5.0.10105.0), when you construct…

                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-Member cmdlet invokes ScriptProperty members when adding new member

                  Votes from Connect: 3

                  Original Date Submitted: 12/4/2014 3:29:25 AM

                  Description:

                  ********Contact Information********
                  Handle: Josef Nemec
                  Site Name: PowerShell
                  Feedback ID: 1045858
                  ***************************************

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

                  Problem Description:
                  When calling Add-Member over an object all ScriptProperty members are being invoked (script blocks from those properties are invoked). I found it during testing on PowerShell 5 preview (from Windows 10 preview build), but it also occurs in PS 4 (tested on Windows 8.1). It seems like it occurs only with System.Management.Automation.dll 6.3.9600.17400 and newer since it works for me on 8.1 machines with…

                  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 →
                  • Get-ADComputer - Example 1 does not work

                    Votes from Connect: 3

                    Original Date Submitted: 6/24/2014 2:27:32 AM

                    Description:
                    ********Contact Information********
                    Handle: 8246jd
                    Site Name: PowerShell
                    Feedback ID: 903885
                    ***************************************

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

                    Problem Description:
                    The help file contains the following example:

                    PS C:\> Get-ADComputer -Identity "Fabrikam-SRV1" -Properties *

                    When done in my environment with a Identity name in my AD I receive the following error:

                    Get-ADComputer : One or more properties are invalid.
                    Parameter name: msDS-AssignedAuthNPolicy
                    At line:1 char:1
                    + Get-ADComputer -Identity "Fabrikam-SRV1" -Properties *
                    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    + CategoryInfo : InvalidArgument: (Fabrikam-SRV1:ADComputer) [Get-ADComputer], ArgumentException
                    + FullyQualifiedErrorId :…

                    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 →
                    • Import-Module with -Name parameter breaks PowerShell ISE in WMF 5.0 April Preview

                      Votes from Connect: 10

                      Original Date Submitted: 5/19/2015 8:46:17 PM

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

                      Frequency: PowerShell ISE
                      Regression: Launch PowerShell ISE as either Administrator or non-Administrator
                      Get-Service BITS
                      Import-Module "Module Name"
                      Get-Module "Module Name"
                      Get-Service BITS
                      Remove-Module "Module Name"
                      Import-Module -Name "Module Name"
                      Get-Module -Name "Module Name"
                      Get-Module "Module Name"
                      Get-Service BITS

                      Problem Description:
                      Using Import-Module -Name "Module Name" imports the module, but breaks all output in the ISE. Using Import-Module "Module Name" imports the module and doesn't affect the output.

                      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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                      • UserLandingPageIdentifierForO365Shell

                        Votes from Connect: 4

                        Original Date Submitted: 5/19/2015 9:43:06 PM

                        Description:
                        ********Contact Information********
                        Handle: hguo83
                        Site Name: PowerShell
                        Feedback ID: 1347366
                        ***************************************

                        Problem Description:
                        Need powershell to set this parameter: UserLandingPageIdentifierForO365Shell

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

                        Repro Steps:

                        Internal BugId: 14488

                        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 →
                        • New-Object fails on a class whose GetEnumerator method throws NotSupportedException

                          Votes from Connect: 3

                          Original Date Submitted: 12/11/2014 7:11:16 AM

                          Description:
                          ********Contact Information********
                          Handle: Clint Stotesbery
                          Site Name: PowerShell
                          Feedback ID: 1051712
                          ***************************************

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

                          Problem Description:
                          I've run into a rare case. I can't use New-Object on a class whose GetEnumerator method throws NotSupportedException. System.Security.Cryptography.Xml.SignedInfo's GetEnumerator method throws a NotSupportedException: http://msdn.microsoft.com/en-us/library/system.security.cryptography.xml.signedinfo.getenumerator(v=vs.110).aspx

                          The stack trace shows TypicalEnumerable as this method catches Exception and then rethrows it as an ExtendedTypeSystemException. I followed the complete stacktrace (hint: there are delegates involved not in the stack trace) and I can't figure out a way…

                          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 →
                          • Get-NetTCPConnection does not show ProcessID

                            Votes from Connect: 9

                            Original Date Submitted: 5/20/2015 3:14:12 PM

                            Description:
                            ********Contact Information********
                            Handle: Joachim Meyer
                            Site Name: PowerShell
                            Feedback ID: 1349420
                            ***************************************

                            Frequency: PowerShell
                            Regression:

                            Problem Description:
                            I guess that classifies more as a design flaw than a bug. Netstat.exe has the option -o that displays the owning Process ID for each connection. Get-NetTCPConnection should also add a property for the Process ID. Without the Process ID the Cmdlet is pretty useless (at least for me) and does not replace netstat.exe. (The underlying WMI class MSFT_NetTCPConnection does not include that property, too, so in this case additional code and…

                            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 →
                            • Set-Acl Overwrites SACL when Run as Administrator

                              Votes from Connect: 5

                              Original Date Submitted: 7/4/2014 10:53:07 PM

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

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

                              Problem Description:
                              The Set-Acl cmdlet overwrites the SACL (and appears to protect it) when called by an administrator (even when the security descriptor object contains no SACL information at all). This can cause a populated SACL to be completely cleared when a user is expecting just DACL modifications.

                              This happens in PSv4. I think I recall seeing it in versions 2 and 3, but…

                              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-Type warns about no public members or properties on non-empty nested classes

                                Votes from Connect: 3

                                Original Date Submitted: 7/10/2014 7:08:54 PM

                                Description:
                                ********Contact Information********
                                Handle: Derp McDerp
                                Site Name: PowerShell
                                Feedback ID: 917335
                                ***************************************

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

                                Problem Description:
                                PowerShell wrongly warns about the following valid code:

                                <#PS#> Add-Type -TypeDefinition @'

                                public static class Outer {
                                public struct Inner {
                                public int x;
                                }
                                }

                                '@
                                WARNING: The generated type defines no public methods or properties.

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

                                Repro Steps:
                                Expected Results:

                                Internal BugId: 8884

                                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 formatting to Get-Help's output

                                  Votes from Connect: 6

                                  Original Date Submitted: 7/10/2014 9:26:39 PM

                                  Description:

                                  ********Contact Information********
                                  Handle: sba
                                  Site Name: PowerShell
                                  Feedback ID: 917423
                                  ***************************************

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

                                  Problem Description:
                                  As of PS4, the output from Get-Help looks very much like a Unix manpage in the 1970s: no colors, no underline, no bold (only some with -ShowWindow)...

                                  In 2014, I would expect formatted output -- see attached files to get... the picture ;-)

                                  The ability to have Get-Help output to a browser window, from where one would be able to print, would also be nice…

                                  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 →
                                  • Update -? common parameter

                                    Votes from Connect: 4

                                    Original Date Submitted: 5/21/2015 8:59:29 PM

                                    Description:
                                    ********Contact Information********
                                    Handle: Thomas Lee
                                    Site Name: PowerShell
                                    Feedback ID: 1353410
                                    ***************************************

                                    Problem Description:
                                    -? is a great parameter for all cmdlets as it does a basic get-help. That's fine, but it would be nice to extend it as follows:

                                    Switch What it does
                                    -?F Equivalent of Get-Help -FULL
                                    -?D Equivalent of Get-Help -Detailed
                                    -?E Equivalent of Get-Help -Example
                                    -?o Equivalent of Get-Help -Online

                                    The idea is to make it simlpler to get help for a cmdlet/function.

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

                                    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 →
                                    • German installer for Microsoft Security Essentials has wrong messages

                                      Votes from Connect: 3

                                      Original Date Submitted: 1/2/2015 7:28:29 AM

                                      Description:
                                      ********Contact Information********
                                      Handle: Roland Illig 2
                                      Site Name: PowerShell
                                      Feedback ID: 1073011
                                      ***************************************

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

                                      Problem Description:
                                      The German version of the installer for Microsoft Security Essentials has two wrong translations:

                                      1. „Falls keine Firewall aktiviert ist, aktivieren Sie die Windows-Firewall (empfohlen).“

                                      This text should not even be in the installer in this form. Either the firewall is already activated, then the checkbox is useless and must not be shown at all. Or the firewall is not already activated, then…

                                      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 →
                                      • Cannot Connect to Office 365 since November's WMF5

                                        Votes from Connect: 3

                                        Original Date Submitted: 1/3/2015 3:54:37 AM

                                        Description:
                                        ********Contact Information********
                                        Handle: rpseekell
                                        Site Name: PowerShell
                                        Feedback ID: 1074018
                                        ***************************************

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

                                        Problem Description:
                                        I use this script to connect to Office 365 via PowerShell, which I think is pretty standard:
                                        $cred = Get-Credential
                                        $sess = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $cred -Authentication basic -AllowRedirection
                                        Import-PSSession -Session $sess

                                        However, since updating to the November preview of PowerShell (WMF) 5, the new-PSSession command hangs and never finishes. I get a message like,
                                        WARNING: Your connection has been…

                                        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 →
                                        • Hashtables --- [ordered] hashtables lack the ContainsKey() method

                                          Votes from Connect: 3

                                          Original Date Submitted: 7/11/2014 1:59:10 PM

                                          Description:
                                          ********Contact Information********
                                          Handle: Diogenus
                                          Site Name: PowerShell
                                          Feedback ID: 917914
                                          ***************************************

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

                                          Problem Description:
                                          Normal hashtables have the method "ContainsKey":

                                          >> $h = @{ a=1; b=2 }
                                          >> $h.ContainsKey("a")
                                          True
                                          >>

                                          While [Ordered] hashtables DO NOT have the "ContainsKey" method:

                                          >> $o = [ORDERED] @{ a=1; b=2 }
                                          >> $o.ContainsKey("a")
                                          Method invocation failed because
                                          [System.Collections.Specialized.OrderedDictionary]
                                          doesn't contain a method named 'ContainsKey'.

                                          This means that my code never can use the ContainsKey() method on a hashtable before checking…

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

                                          Feedback and Knowledge Base