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.
  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. Windows PowerShell v5 - PowerShell Direct - Start-Job with -vmname parameter

    Votes from Connect: 3

    Original Date Submitted: 5/27/2015 9:24:37 PM

    Description:

    Contact Information
    Handle: _TimPringle
    Site Name: PowerShell
    Feedback ID: 1373413


    Frequency: PowerShell

    Regression: Reproduction Steps Example 1

    1) Start PowerShell (either as normal or run as administrator)
    2) Type Start-Job -VMName, and use tab to parse through other parameters. These are only the common parameters.

    Reproduction Steps Example 2

    1) Start PowerShell (either as normal or run as administrator)
    2) Type get-command start-job -Syntax
    3) The output should be similar to below, but the last four lines, which detail the use with the VM parameters, only indicate that the…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  2. Installation of KB3000850 on Win8.1 or WS2012R2 Causes PowerShell Script to Freeze with High CPU Utilization

    Votes from Connect: 66

    Original Date Submitted: 5/27/2015 8:46:16 AM

    Description:
    Contact Information
    Handle: Frank E Lesniak
    Site Name: PowerShell
    Feedback ID: 1371736


    Frequency: PowerShell
    Regression: 1. Visit: https://gist.github.com/anonymous/572f42ba0ea7eec4f721#file-psclassreproreduced11-ps1
    2. Click the "Raw" button. Copy the code to the clipboard
    3. Open Notepad and paste the code from the clipboard. Save the file somewhere with file name: animal.ps1
    (don't forget to change the file type to "All Files")
    4. Execute the script using PowerShell.

    Problem Description:
    I have a stock PowerShell template that I use as a starting point for many scripts; its code is used throughout my…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  3. 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 ID…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  4. 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 a…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  5. 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 a PowerShell class,…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  6. 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 2 …

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  7. Variables that are $null are not always $null

    Votes from Connect: 3

    Original Date Submitted: 5/4/2015 1:20:27 AM

    Description:
    Contact Information
    Handle: David I McIntosh
    Site Name: PowerShell
    Feedback ID: 1300430


    Frequency: PowerShell
    Regression: >function emptyArray() { @() }
    >$lt = @() ; $lt.Count
    0
    >$lt1 = @(); $lt1 -eq $null; $lt1.count; $lt1.gettype()
    0
    IsPublic IsSerial Name BaseType


    True True Object[] System.Array

    >$lt += $lt1; $lt.Count
    0
    >$l
    t += emptyArray; $lt.Count
    0
    >$l
    t2 = emptyArray; $lt2 -eq $null; $lt2.Count; $lt2.gettype()
    True
    0
    You cannot call a method on a null-valued expression.
    At line:1

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  8. Error Installing Powershell Preview April 2015 on Windows 7

    Votes from Connect: 3

    Original Date Submitted: 4/30/2015 2:06:48 PM

    Description:
    Contact Information
    Handle: Holger Froebe
    Site Name: PowerShell
    Feedback ID: 1290413


    Frequency: PowerShell
    Regression: Windows 7 SP1 X64 - German
    Following release notes:
    Checked for all the updates - OK
    Powershell 4.0 was installed - OK
    Selecting package from MS Download Center:
    Windows6.1-KB2908075-x64
    Starting the Update-Package gives me the above error.

    Maybe a Problem with UI Culture - I work with a german Windows and maybe the Preview is
    only applicable to english Windows ?

    Problem Description:
    Installing Powershell 5.0 on Windows 7 gives me error:
    This update is…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  9. PowerShell should have a cmdlet that supports best effort magic number parsing on files without extensions or incorrect extensions

    Votes from Connect: 4

    Original Date Submitted: 4/14/2015 8:18:28 AM

    Description:
    Contact Information
    Handle: JasonHorner
    Site Name: PowerShell
    Feedback ID: 1246396


    Problem Description:
    often we need to parse a file and not rely on its extension, while magic number parsing is imperfect it can provide some value.
    this could be used for general file parsing as well as some security scenarios

    Here is a script that implements this feature though I don't think it is completely robust:
    http://powershell.com/cs/blogs/tips/archive/2010/08/09/reading-file-quot-magic-number-quot.aspx

    unix support a similar capability via the file utility:
    http://en.wikipedia.org/wiki/File_%28command%29

    More info on magic number parsing:
    http://en.wikipedia.org/wiki/Listoffile_signatures

    Product Studio item…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  10. 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 feedback…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  11. 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 you…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  12. 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 for…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  13. 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 &#39;You need to call this function from within a saved script.&#39;
    }

    }

    $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 MSBuild…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  14. PowerShell script cannot be ran outside of Console if path contains spaces

    Votes from Connect: 11

    Original Date Submitted: 5/29/2013 2:52:43 AM

    Description:
    Contact Information
    Handle: deadlydog
    Site Name: PowerShell
    Feedback ID: 788806


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

    Problem Description:

    If you try and run a PowerShell script from File Explorer (e.g. Windows Explorer) by double clicking on it, or from the context menu using Open With -> Windows PowerShell the script will not run; instead the PowerShell console will display an error that the given file path is not valid, since only the first portion (up to the first space) of the script file path…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  15. Please add documentation in French language for PowerShell 3.0

    Votes from Connect: 114

    Original Date Submitted: 1/11/2013 5:50:47 PM

    Description:
    Contact Information
    Handle: Arnaud Petitjean
    Site Name: PowerShell
    Feedback ID: 776313


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

    Problem Description:
    * Unlike the previous versions (1.0 and 2.0) *, in PowerShell 3.0 there are no help files available in French language.

    I would consider missing help as top priority here. Even for peoples who can read English, there is a big danger to misunderstood something. Reading documentation in a foreign language can be very challenging.

    Calling the -online Help every time I need…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  16. Invoke-RestMethod is truncating results

    Votes from Connect: 11

    Original Date Submitted: 9/29/2012 1:53:59 AM

    Description:

    Contact Information
    Handle: Trevor Sullivan
    Site Name: PowerShell
    Feedback ID: 765261


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

    Problem Description:
    The Invoke-RestMethod cmdlet in PowerShell v3 is truncating the results that come back from the Windows Azure REST API (querying for a list of ServiceBus queues), formatted as a XML AtomPub document. Within the results of the AtomPub document, only every other AtomPub "title" is returned from Invoke-RestMethod, rather than a complete result set.

    This behavior can be confirmed by using the parameters…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  17. Make module availability network-discoverable

    Votes from Connect: 10

    Original Date Submitted: 4/21/2012 9:43:26 PM

    Description:
    Contact Information
    Handle: PowerShellDon
    Site Name: PowerShell
    Feedback ID: 738071


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

    Problem Description:
    I suggest a Register-Module cmdlet, which can be used to register a given module, on a given machine, optionally within a given AD site, as being publicly available. Registration would be in DNS, likely as SRV records (much like an AD domain controller).

    "Get-Module -List" would then list local modules as well as modules advertised in DNS for the user's current site (or modules…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  18. PowerShell (pre-) compiled Scripts

    Votes from Connect: 17

    Original Date Submitted: 3/26/2012 6:09:59 PM

    Description:
    Contact Information
    Handle: Peter Kriegel
    Site Name: PowerShell
    Feedback ID: 733298


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

    Problem Description:
    Make it Possible to save PowerShell scripts in a compiled format (binary byte-code).

    Since PowerShell V 3.0 uses the DLR, every PowerShell V 3.0 script has to be compiled during the first run of the script. This may have a speed disadvantage. To speed up the execution of scripts, it may be useful to store scripts in a compiled binary format and run them…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  19. Filtering Filesystem objects based on a DateTime value

    Votes from Connect: 13

    Original Date Submitted: 3/5/2012 6:41:31 PM

    Description:
    Contact Information
    Handle: Shay Levi
    Site Name: PowerShell
    Feedback ID: 728747


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

    Problem Description:
    In PowerShell 3.0, the Test-Path cmdlet supports two new parameters: NewerThan and OlderThan. Both parameters accepts a DateTime object and return $true if the object's LastWriteTime is less/greater than the specified date.

    One of the tasks IT admins need to perform often is getting old files. It would be great if Get-ChildItem could support those parameters as well, allowing us to filter objects based on…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  20. $OutputRedirectionEncoding --- like $OutputEncoding

    Votes from Connect: 2

    Original Date Submitted: 2/4/2012 8:58:39 AM

    Description:
    Contact Information
    Handle: S.K. _
    Site Name: PowerShell
    Feedback ID: 723240


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

    Problem Description:
    Please modifiable Encoding of '>'.

    $OutputRedirectionEncoding = [Text.Encoding]::Default
    ls > file.txt # output as Default Encoding

    $OutputRedirectionEncoding = [text.encoding]::GetEncoding("euc-jp")
    ps > process.txt # output as EUC-JP

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

    Repro Steps:
    Expected Results:

    Internal BugId: 3324

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base