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. Add PSValidFrom/PSValidTo common properties for DSC resources

    Votes from Connect: 10

    Original Date Submitted: 10/6/2015 1:58:16 AM

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


    Problem Description:
    Suggest adding a PSValidFrom and PSValidTo common property set (a la PSCredential). These would need to implicitly become part of the key when exporting the MOF. The idea is to help cover maintenance and task windows: From DateTime to DateTime, I want Service ___ Stopped; from DateTime to DateTime, I want it Started. So that becomes:

    Service BITS {
    Name=BITS
    Present=$True
    StartMode=Auto
    PSValidFrom=02:00:00UTC
    PSValidTo=21:00:00UTC
    }
    Service BITS {
    Name=BITS
    Present=$True
    StartMode=Disabled
    PSValidFrom=21:00:00UTC
    PSValidTo=02:00:00UTC
    }

    Considerations: DateTime could…

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  2. Connecting to Office 365 crashes WMF5 PowerShell.exe

    Votes from Connect: 6

    Original Date Submitted: 9/1/2015 2:33:33 PM

    Description:

    Contact Information
    Handle: Michel de Rooij
    Site Name: PowerShell
    Feedback ID: 1738789


    Frequency: PowerShell
    Regression: Open PowerShell session in Windows 10 build 10532
    $SessionEOP = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.protection.outlook.com/powershell-liveid/ -Credential (Get-Credential) -Authentication Basic -AllowRedirection

    Import-PSSession -Session $SessionEOP
    <Crash>

    Problem Description:
    When connecting to certain Office 365 services, like EOP, the PowerShell.exe in WMF5 crashes (Windows 10 builds 10525 and 10532 show this behavior). When connecting to the /powershell-liveid URL, session gets redirected to /powershell-liveid?PSVersion=5.0.10525.0 (or 10532 for that build) then abends with a 'PowerShell has stopped working'.

    Product…

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  3. Get-DscConfiguration Fails With Embedded CIM type

    Votes from Connect: 3

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

    Description:
    Contact Information
    Handle: Steve Murawski
    Site Name: PowerShell
    Feedback ID: 1721560


    Frequency: Desired State Configuration (DSC)
    Regression: install-module cWebAdministration
    configuration cWebsite_StopWebsite
    {

    param
    
    (
    # Target nodes to apply the configuration
    [string[]]$NodeName = &#39;localhost&#39;
    )

    # Import the module that defines custom resources
    Import-DscResource -ModuleName cWebAdministration

    Node $NodeName
    {
    # Install the IIS role
    WindowsFeature IIS
    {
    Ensure = &quot;Present&quot;
    Name = &quot;Web-Server&quot;
    }

    # Stop the default website
    cWebsite DefaultSite
    {
    Ensure = &quot;Present&quot;
    Name = &quot;Default Web Site&quot;
    State = &quot;Stopped&quot;
    PhysicalPath = &quot;C:\inetpub\wwwroot&quot;
    DependsOn = &quot;[WindowsFeature]IIS&quot; …

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
    investigating  ·  Mark Gray responded

    This should be resolved with WMF 5.0. Please let us know if this is reproducible with WMF 5.0 RTM.

  4. Read-Host problems in Powershell 5.0.10240.16384

    Votes from Connect: 3

    Original Date Submitted: 8/6/2015 11:52:12 PM

    Description:
    Contact Information
    Handle: Unit347
    Site Name: PowerShell
    Feedback ID: 1635172


    Frequency: PowerShell
    Regression:

    Problem Description:
    $NICs = Get-WmiObject Win32NetworkAdapter | Where-Object {$.PhysicalAdapter -eq $true}

    $NICs | Select-Object Name, DeviceID

    $NICnumber = Read-Host "`nSelect Network Adapter"

    When running the code above on PowerShell 4.0 it works normally, but when I try it on Powershell 5.0 the list of network cards is displayed after the Read-Host output. I also get the same result with "[Console]::ReadLine()".

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

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  5. Unexpected behavior with UNC paths

    Votes from Connect: 4

    Original Date Submitted: 7/17/2015 7:14:42 PM

    Description:
    Contact Information
    Handle: sba
    Site Name: PowerShell
    Feedback ID: 1556276


    Frequency: PowerShell
    Regression: 1. Set the current location to somewhere in the registry
    cd HKLM:/Software/Microsoft


    1. Copy a file from one "drive-specified path" to another one:
      Copy-Item -Destination h:\tmp -Path E:\tmp\foo.csv

    This works fine.


    1. Attempt to copy a file from one "drive-specified path" to a UNC path:
      Copy-Item -Destination //nas/users/sba/tmp -Path E:\tmp\foo.csv

    This fails:

    Copy-Item : Source and destination path did not resolve to the same provider.
    At line:1 char:1
    + Copy-Item -Destination //nas/users/sba/tmp -Path E:\tmp\foo.csv
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo
    4 votes
    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. Add Reverse-String cmdlet

    Votes from Connect: 9

    Original Date Submitted: 7/16/2015 4:32:00 PM

    Description:
    Contact Information
    Handle: happysysadm
    Site Name: PowerShell
    Feedback ID: 1551725


    Problem Description:
    Hi,

    it would be nice to have a Reverse-String cmdlet. One that takes a string and reverse it. For example, "asdf" becomes "fdsa".

    It could be aliased to rs (for reverse-string).

    The reverse method for [array] is ok, but having a cmdlet and/or a [string] method. would be better.

    Other well-known languages have routines for this:

    For instance in Perl 6 you have the flip routine, which returns the string reversed character by character.
    "Perl".flip; # lreP …

    4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  7. IIF Statement (If Shorthand)

    Votes from Connect: 4

    Original Date Submitted: 7/2/2015 7:46:53 PM

    Description:
    Contact Information
    Handle: TheRealMartin9700
    Site Name: PowerShell
    Feedback ID: 1497806


    Problem Description:
    It would be great if PowerShell could get IIF-like functionality:

    IIF -Condition (condition) -True (true value) -False (false value)

    IIF ($a -gt 5) "Its bigger!" "Too small"

    IIF ($a -lt 5) { $b = "Too small" } { $b = "bingo!" }

    There are plenty of times where we need to make a quick value check and either set a variable or set a variable and going through the full IF syntax is a pain.

    Product Studio…

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  8. Import-Csv does not correctly detect encoding for UTF-8 files without BOM

    Votes from Connect: 6

    Original Date Submitted: 5/27/2015 3:02:36 AM

    Description:
    Contact Information
    Handle: electricmonk
    Site Name: PowerShell
    Feedback ID: 1371244


    Frequency: PowerShell
    Regression:

    Problem Description:
    Using Import-Csv on a UTF-8 file without a BOM will result in unrecognized extended characters

    Import-Csv -Encoding UTF8 does not work correctly either.

    Thanks to Joakim Svendsen for finding this:
    http://www.powershelladmin.com/wiki/Convertfrommostencodingstoutf8with_powershell

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

    Repro Steps:
    Expected Results:

    Internal BugId: 14513

    4 votes
    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. Split-Path and PS-providers

    Votes from Connect: 3

    Original Date Submitted: 5/15/2015 7:18:48 PM

    Description:
    Contact Information
    Handle: Juho Lehto
    Site Name: PowerShell
    Feedback ID: 1335123


    Problem Description:
    I've been pulling my hair out long enough, so I decided to finally submit some feedback concerning Split-Path.

    Assuming you want to use Split-Path on UNC paths, such as something like \server\path, you're fine as long as you use FileSystem PS-provider. But if you switch to something different, such as registry or ActiveDirectory providers, Split-Path either spits out an error or produces null.

    Because in the end we have no control over what providers end-users may…

    4 votes
    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. Break works outside of loops/switch

    Votes from Connect: 6

    Original Date Submitted: 5/11/2015 6:44:53 AM

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


    Frequency: Documentation
    Regression: 1. # In a script:

    Break
    Get-Process


    1. Run the script. It breaks before Get-Process


    2. Read about_Break:
      "Describes a statement you can use to immediately exit Foreach, For, While, Do, or Switch statements."


    Problem Description:
    About_Break says that Break works only in loops/switch. But, Break works in scripts, too. If you place Break in script scope, it ends the script.

    For example: "Describes a statement you can use to immediately exit Foreach, For, While, Do, or…

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  11. Devices.edb does not exists when WMF5 is installed prior to deploying DSC Pull Server

    Votes from Connect: 5

    Original Date Submitted: 4/29/2015 2:50:27 AM

    Description:

    Contact Information
    Handle: Ben Gelens
    Site Name: PowerShell
    Feedback ID: 1286605


    Frequency: Desired State Configuration (DSC)
    Regression: Install a clean Windows Server 2012R2 system.
    Install WMF5 Feb preview.
    Download and install xPSDesiredStateConfiguration module.
    Run configuration:
    configuration PullSRV
    {

    Import-DSCResource -ModuleName xPSDesiredStateConfiguration
    
    xDscWebService PSDSCPullServer
    {
    Ensure = &#39;Present&#39;
    EndpointName = &#39;PSDSCPullServer&#39;
    Port = 8080
    PhysicalPath = &quot;$env:SystemDrive\inetpub\wwwroot\PSDSCPullServer&quot;
    ModulePath = &quot;$env:PROGRAMFILES\WindowsPowerShell\DscService\Modules&quot;
    ConfigurationPath = &quot;$env:PROGRAMFILES\WindowsPowerShell\DscService\Configuration&quot;
    State = &#39;Started&#39;
    CertificateThumbPrint = &#39;AllowUnencryptedTraffic&#39;
    }

    }
    Setup an simple config and add it to configuration repo using GUID.MOF and generate a checksum

    Problem Description:
    The…

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  12. PS5 Classes: InvalidCastException FunctionMemberAst to FunctionDefinitionAst

    Votes from Connect: 4

    Original Date Submitted: 3/25/2015 9:08:08 AM

    Description:
    Contact Information
    Handle: Joel 'Jaykul' Bennett
    Site Name: PowerShell
    Feedback ID: 1202102


    Frequency: PowerShell
    Regression:

    Problem Description:
    When working with classes in PowerShell 5 inheritance. I can reproduce, but it's complicated (a custom job type), and involves receiving messages over the network which triggers an event handler. I can't seem to repro in simpler classes. The crash is killing the job and the parent PowerShell as well, and frankly, I hope if you see the Message, you may not need the repro...

    System.InvalidCastException was caught
    HResult=-2147467262
    Message=Unable to cast…

    4 votes
    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. Expand-WindowsImage fails to show progress...

    Votes from Connect: 3

    Original Date Submitted: 3/17/2015 7:47:07 AM

    Description:
    Contact Information
    Handle: Keith Garner
    Site Name: PowerShell
    Feedback ID: 1185163


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

    Problem Description:
    The Expand-WindowsImage cmdlet, although it shows a progress bar on the screen, the contents remain stuck at 0% during most of the application of the windows image.

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

    Repro Steps:
    Run Expand-WindowsImage from a large *.wim file to a new drive.

    Expected Results:
    Expect that Expand-WindowsImage should…

    4 votes
    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. Get-AuthenticodeSignature should work with catalog-signed files.

    Votes from Connect: 5

    Original Date Submitted: 2/9/2015 6:05:29 PM

    Description:
    Contact Information
    Handle: Bryan Lockwood
    Site Name: PowerShell
    Feedback ID: 1121526


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

    Problem Description:
    Get-AuthenticodeSignature works great for files with embedded Authenticode signatures. It should work just as well for those using signed catalog files (as defined on page 12 of "Code Signing Best Practices" at http://goo.gl/O3IbiE ). If signtool and sigcheck can do this, PowerShell should be able to!

    Thanks for considering this.

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

    4 votes
    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. Add ONLINEVERSION keyword and FWLINK URL to About topics

    Votes from Connect: 13

    Original Date Submitted: 12/13/2014 3:52:04 AM

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


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

    Problem Description:
    There's no OnlineVersion property of About topics, because they're text, but you can add an all-caps ONLINEVERSION keyword to the text with the forward-link URL of the online version of the help topic. Providing the forward-link URL to the public allows us to link reliably to the online help topic in blog/forum posts.

    e.g.
    KEYWORDS

    about_Common_Parameters
    

    ONLINEVERSION: http://go.microsoft.com/fwlink/?LinkID=113309

    SEE ALSO

    about_Preference_Variables
    
    Write-Debug

    To find it: …

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  16. Script cmdlets with dynamic parameters and -PipelineVariable

    Votes from Connect: 3

    Original Date Submitted: 12/3/2014 7:09:24 PM

    Description:
    Contact Information
    Handle: PetSerAl
    Site Name: PowerShell
    Feedback ID: 1045513


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

    Problem Description:
    Script cmdlets with dynamicparam block throw exception when used with -PipelineVariable common parameter.

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

    Repro Steps:
    &{[CmdletBinding()]param()dynamicparam{}} -PipelineVariable asd

    Expected Results:

    Internal BugId: 13129

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  17. Powershell 2 suppresses exception throw from .NET object property

    Votes from Connect: 3

    Original Date Submitted: 12/2/2014 10:16:19 PM

    Description:

    Contact Information
    Handle: Lexey
    Site Name: PowerShell
    Feedback ID: 1044801


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

    Problem Description:
    I am trying to get a value of a property implemented in .NET object. The get implementation throws an Exception. Script is being executed with $ErrorActionPreference = "Stop".
    However, the exception is just being ignored. That really breaks the whole idea of exception handling. :(
    BTW, $obj.get_Property() call produces an exception as expected. So, only the $obj.Property is impaired.

    Product Studio item created by…

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  18. PowerShell ISE does not have a comment/uncomment shortcut/toolbar button

    Votes from Connect: 6

    Original Date Submitted: 9/23/2014 10:09:48 AM

    Description:
    Contact Information
    Handle: vs2010junkie
    Site Name: PowerShell
    Feedback ID: 979511


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

    Problem Description:
    Most IDEs in general provide the ability to comment/uncomment blocks of code using a toolbar button or a shortcut key. This includes competing PowerShell editors such as PrimalScript and PowerGUI. However, the PowerShell ISE does not have such a feature even though pretty much every other tool in the Microsoft suite does such as Visual Studio and SQL Server Management Studio.

    Therefore, this feature should also…

    4 votes
    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. An alias of a cmdlet reports fewer parameter properties than the cmdlet itself reports

    Votes from Connect: 3

    Original Date Submitted: 7/30/2014 9:14:10 PM

    Description:
    Contact Information
    Handle: Larry Weiss
    Site Name: PowerShell
    Feedback ID: 932800


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

    Problem Description:
    Consider the transcript below. Get-ChildItem and gci do not report the same number of parameters:

    <#c:#> cat alias:gci
    Get-ChildItem
    <#c:#> ((get-command get-childitem).parameters).count
    23
    <#c:#> ((get-command gci).parameters).count
    17

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

    Repro Steps:
    Consider the transcript below. Get-ChildItem and gci do not report the same number of parameters:
    I'm using…

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  20. PowerShell ISE v4/v3 doesn't handle stdout from children using the same charset conversion as the console host

    Votes from Connect: 3

    Original Date Submitted: 7/22/2014 4:37:07 PM

    Description:
    Contact Information
    Handle: sba
    Site Name: PowerShell
    Feedback ID: 926280


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

    Problem Description:
    Suppose I'm reading the output of some child command using

    $foo = $(& "something.exe")

    If the child's stdout contains accented characters, the PowerShell console host apparently (undocumentedly?) does an implicit conversion from the "IBM437" encoding to "windows-1252" encoding.

    The PowerShell ISE, however, does something different, breaking some scripts / making it impossible to get the same results in the console host and in the ISE. For…

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base