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. Love PowerShell but not a fan of one syntax requirement

    Votes from Connect: 6

    Original Date Submitted: 3/14/2015 4:56:44 AM

    Description:
    ********Contact Information********
    Handle: J. Michael Delaney
    Site Name: PowerShell
    Feedback ID: 1179419
    ***************************************

    Problem Description:
    Love PowerShell. It helps me so much in my daily tasks and I am constantly wowing co-workers with my skills.

    When scripting, the only thing I don't like about PowerShell is that when doing conditional statements with if/elseif/else and looping constructs, that I need to use brace brackets when the conditional or loop executes one line of code.

    For example, in other languages such as C++, I can do this:

    If(x=10)
    std::cout << "hello…

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  2. 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
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  3. 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
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  4. 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
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  5. 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
    (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. 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
    (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. 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
    (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. DSC Please make sure key properties are unique for each resource in a node.

    Votes from Connect: 3

    Original Date Submitted: 1/29/2015 7:34:02 AM

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

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

    Problem Description:
    i've investigated DSC but found it to be almost unusable on any kind of scale since it seems every variable is stored in some global scope, not even quantified with step names.

    This makes it impossible to so something as simple as stopping and starting a service to update it, surely a common scenario. (Because the "Name" has to be unique)

    Even worse, trying to…

    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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  9. MKDIR and RM needs unix-like most pertinent switches

    Votes from Connect: 3

    Original Date Submitted: 1/3/2015 6:07:28 AM

    Description:
    ********Contact Information********
    Handle: The Deeds
    Site Name: PowerShell
    Feedback ID: 1074131
    ***************************************

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

    Problem Description:
    Part 1:

    In bash, we say:

    rm -f

    In Powershell, the equivalent is:

    rm -Force

    Please add an alias -f, so to make it compatible with unix-like shells. It helps a lot in C/C++ CMAKE and other scripting scenarios like Nodejs etc.

    Part 2:

    We desperately need mkdir -p (or --parents) switch of Unix in Windows. Going by the man (manual); http://www.computerhope.com/unix/umkdir.htm, it…

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  10. 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
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  11. 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
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  12. 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
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  13. 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
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  14. 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
    (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. Get-Command's System.Management.Automation.AliasInfo object should return an 'IntroducedIn' Property

    Votes from Connect: 5

    Original Date Submitted: 10/29/2014 11:53:04 PM

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

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

    Problem Description:
    Currently there is no easy method to determine which version of PowerShell a particular cmdlet will work within.

    Take the example of New-PSDrive. This command was introduced in PowerShell version 2.0, but the current Version property displayed when I run 'Get-Command New-PSDrive | Format-List' displays the value of 3.1.

    While this cmdlet was included in 3.0 and 4.0, it is misleading that the version…

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  16. Add -Wait and -Timeout parameters to Debug-Job

    Votes from Connect: 4

    Original Date Submitted: 10/6/2014 9:54:44 PM

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

    Frequency: Always Happens
    Regression: I don

    Problem Description:
    When writing a simple example to debug a PowerShell Background Job, the Background Job does not have enough time to initialize, before the Debug-Job command is invoked. Examine the following example:

    $ScriptBlock = {
    $Foo = 1;
    Wait-Debugger;
    $Foo++;
    };

    $Job = Start-Job -ScriptBlock $ScriptBlock;
    Debug-Job -Job $Job;

    When I run the above code in the PowerShell ISE, I receive an error message from Debug-Job, stating:

    "Debug-Job :…

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  17. Group Policy Powershell Script

    Votes from Connect: 28

    Original Date Submitted: 9/29/2014 7:28:00 PM

    Description:
    ********Contact Information********
    Handle: Axel B. Andersen
    Site Name: PowerShell
    Feedback ID: 984532
    ***************************************

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

    Problem Description:
    When running Powershell Logon or Logoff Scrips in GPO's the -NoProfile switch is not included in the command. This results in very long logon/logoff times, if users have filled their Powershell Profile with a lot of modules. It can take up to 10 minutes, if the profile needs user input to load.

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

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  18. Provide PowerShell ISE with better support for .Types.ps1xml and .Format.ps1xml

    Votes from Connect: 4

    Original Date Submitted: 9/15/2014 7:04:41 AM

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

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

    Problem Description:
    Specifically:

    1. it should auto-complete the xml based on their doctypes
    2. it should recognize the interior of <ScriptBlock>s as PowerShell scripts rather than as text blobs and format and auto-complete those correctly.
    3. it should provide better outlining of the xml (e.g. if you put the caret on an end tag or start tag it should highlight the entire interior of that xml…

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  19. Get-ChildItem -Recurse -LiteralPath doesn't find anything

    Votes from Connect: 4

    Original Date Submitted: 9/14/2014 4:22:48 PM

    Description:
    ********Contact Information********
    Handle: sba
    Site Name: PowerShell
    Feedback ID: 971502
    ***************************************

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

    Problem Description:
    When 'Get-ChildItem -Recurse -LiteralPath' is run against a directory whose name contains square brackets, no output is produced.

    Take a directory with the following contents:

    PS> cmd /c dir /s d:\tmp\dir[1]
    Volume in drive D is DATA
    Volume Serial Number is 0454-9DBF

    Directory of d:\tmp\dir[1]

    2014-09-14 09:23 <DIR> .
    2014-09-14 09:23 <DIR> ..
    2014-09-14 09:23 <DIR> subdir
    0 File(s) 0 bytes

    Directory of d:\tmp\dir[1]\subdir

    2014-09-14…

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  20. Automatically add help links for all commands sharing the same noun

    Votes from Connect: 6

    Original Date Submitted: 9/11/2014 4:15:39 AM

    Description:
    ********Contact Information********
    Handle: Kirk Munro
    Site Name: PowerShell
    Feedback ID: 968858
    ***************************************

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

    Problem Description:
    Help documentation is more time consuming than it needs to be. My biggest pain point with help is that I like to include links to all other commands with the same noun to aid in discoverability. Sure, there is Get-Command -Noun ..., but it is useful in help documentation to include links to those commands as well. This also helps modern help tools link…

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base