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. [Bug] Creating Local Users Fails Test-DSCConfiguration if the Users are Disabled

    I can successfully create a disabled local user account on a non-domain joined server which has a password policy enforced.

    If I try to create the disabled account with out a password, or one in violation of the policy, the configuration fails. This is expected.

    If I create a disabled local user account with a password that meets the requirements, the configuration applies. When I run Test-DSCConfiguration the test fails with:
    PowerShell DSC resource MSFT_UserResource failed to execute Test-TargetResource functionality with error message:
    There could be a possible connection error while trying to use the System.DirectoryServices API's.Exception calling
    "ValidateCredentials" with…

    4 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 →
    survey  ·  Mark Gray responded

    Phil,

    Sounds like a valid bug. Thanks for bringing it to our attention. I have opened a bug in our internal system to track this to resolution.

    MarkG

  2. Negation operator isn't IEEE floating point compliant

    $a = 0.0 ; $b = -$a ; $c = -1.0*$a

    1.0 / $b

    should produce [double]::NegativeInfinity but produces [double]::PositiveInfinity instead

    1.0 / $c

    this correctly produces [double]::NegativeInfinity

    It looks like PowerShell implements "-$a" as "0 - $a" which is incorrect for floating point types.

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

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  3. Windows PowerShell ISE: Add keyboard shortcuts for finding text in a file

    Votes from Connect: 15

    Original Date Submitted: 6/21/2013 12:37:40 AM

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


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

    Problem Description:
    In the PS ISE Script Pane it would be nice if instead of having to use Ctrl+F to pop the Find window, we could just use Ctrl+F3 to search for the currently selected text, F3 to move to the next occurrence, and Shift+F3 to move to the previous occurrence. If no text is selected when Ctrl+F3 is hit, it should find the next occurrence of the…

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

    We’ll send you updates on this idea

    0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  4. semantic versioning

    Semantic versioning does not work for PSGallery

    Allow new versions of modules to be published according to semantic version.

    Without semantic versioning, it is very difficult to evolve a module in a backwards compatible manner. Sometimes breaking changes are needed to get away from previous bad design decisions, but you still don't want to break existing clients, and wants to be able to provide bug fixes for those.

    That is, allow v1.1 to be published, even if there is a v2.0.

    See http://semver.org/ for details.

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

    We’ll send you updates on this idea

    0 comments  ·  Package Management  ·  Flag idea as inappropriate…  ·  Admin →

    Thanks for the suggestion. This one may be a bit tougher than others. However, your point is clear – there’s no way to rev an older version of a module once you have published a major version due to a breaking change.

  5. $MyInvocation.ExpectingInput doesn't work in DynamicParam blocks

    PowerShell always evaluates $MyInvocation.ExpectingInput to $false in the DynamicParam block:

    function test([Parameter(ValueFromPipeline)]$Dummy) {

    dynamicparam { $r = @(); $r += $MyInvocation.ExpectingInput }
    
    begin { $r += $MyInvocation.ExpectingInput }
    process { $r += $MyInvocation.ExpectingInput }
    end { $r += $MyInvocation.ExpectingInput; $r -join ' ' }

    }

    1 | test

    False True True True

    #

    this should be:

    #

    True True True True

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

    We’ll send you updates on this idea

    survey  ·  1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  6. Document two types of terminating errors

    PowerShell help describes errors as non-terminating and terminating.
    But it does not tell that there are two types of terminating errors.

    For example, "true terminating errors" are produced by throw in scripts.
    They terminate the current script AND the calling script.

    Other terminating errors terminate only the current pipeline and DO NOT
    terminate the calling script unless its $ErrorActionPreference='Stop'
    or there is try/catch/finally or trap somewhere in the call stack.

    Just one example. A missing command is such a semi-terminating error (help about_trap).
    More: https://github.com/nightroman/PowerShellTraps/tree/master/Basic/Errors-of-unusual-type

    In the following command Get-Date is invoked after the error and the exit code is…

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

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  7. Get-Process VM output column should not be truncated with ellipsis

    By default, the tabular output of Get-Process truncates the VM(M) column by default, showing ellipsis (...) for the VM memory size. This is an output formatting bug and should be VERY easy to fix.

    Please either properly autosize the columns in the output of Get-Process to avoid the ellipsis for the VM property, or don't show the VM property by default at all. Thanks.

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

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  8. Drop Uservoice and open a GitHub repo for tracking issues

    Seriously. How is this any good for tracking issues? You "upvote" an issue? Cmon.

    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 →
  9. RSS Feed for Modules

    It is currently hard to get notifications when PowerShell modules get updated. It would be nice if there would be an RSS feed for new versions of a package, then my RSS reader could notify me that a new version is available and I could take action.

    6 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 Gallery  ·  Flag idea as inappropriate…  ·  Admin →

    We are investigating this and have it in our backlog queue.
    The priority of the feature will be impacted by the number of votes, which right now is fairly low for this task.

  10. Why can't Acrobat save these PowerShell articles?

    I've tried several ways to capture the PowerShell documentation into a single PDF file which I find much more convenient instead of clicking around a Microsoft site. Acrobat just locks up. I've never seen it behave this way before.

    It places PowerShell out of reach for those of us trying to learn new tools.

    Please try it yourself. Acrobat XI Pro.
    - Use the browser plugin "create PDF from webpage"
    - Or start with Acrobat "create PDF"
    - Or Browser / Save as html complete

    Print to PDF is inadequate because webpage links are missing and on the PowerShell pages,…

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

    We’ll send you updates on this idea

    2 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  11. Add enhanced reporting, allowing you to view the status of all nodes instead of one at a time.

    Currently, the DSC reporting server only offers the ability to query a single node at a time. I think for any environment, it would be crucial to get a list of the last reported compliance for all nodes. I'd really like to see this feature added in a future release.

    2 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 →
    survey  ·  Mark Gray responded

    Eric,

    Thanks for the feedback! This is something that we are aware of. We intentionally did not want to do this without having a way to authenticate the requests.

    Have you seen this community project? It should help you get the functionality that you are looking for including authentication:
    https://github.com/claudiospizzi/DSCPullServerWeb

    MarkG

  12. Curated Module Lists

    The PowerShell gallery should allow users to create "lists" of modules (think of it as an Amazon wish list).

    A user could create a "favorites" list and add modules and scripts to it to keep track of their favorites over time (maybe even "subscribe" to notifications of new releases of things on the list).

    A user could also create a "user management modules" list or a "stretching PowerShell's limits" list or a "should have been in the box" list, or a "things I use in my prompt" list ...

    But most importantly, users should be able to SHARE those lists,…

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

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
  13. [BUG] Count property incorrect works with a single WMI object

    You can now use Count or Length on any object, even if it didn’t have the property. If the object didn’t have a Count or Length property, it will will return 1 (or 0 for $null). Objects that have Count or Length properties will continue to work as they always have.

    Returns nothing,but should be

    PS > (Get-WmiObject -Class Win32OperatingSystem).Count
    PS > (Get-CimInstance -ClassName Win32
    OperatingSystem).Count

    Works as expected

    PS > (Get-WmiObject -Class Win32OperatingSystem -Filter "Name=1").Count
    0
    PS > (Get-CimInstance -ClassName Win32
    OperatingSystem -Filter "Name=1").Count
    0
    PS > (Get-CimInstance -ClassName Win32Service).Count
    230
    PS > (Get-WmiObject -Class Win32

    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 →

    I can repro this for sure, but given the difficulty of servicing and the impact of the bug, it’s pretty unlikely to get fixed.

    One possible workaround: (Get-CimInstance -ClassName Win32_OperatingSystem -Filter “Name=1″ | Measure-Object).Count

  14. Export-ISEState options

    Export-ISEState should have the ability to 'Save current tab', 'Save specific tabs' and 'Save all tabs'

    Default should remain 'Save all tabs'

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

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  15. Allow Environment Variable as default value for function parameter.

    When defining a function, I would like to use an environment variable as the default value. If the environment variable exists and has a value that value will be used. For example,

    function Get-Info ([Alias("name")] [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [string] $projectName = $env:Project_Name)
    {
    }

    Instead of having to passing in the Project Name for each call I would like to store it in an environment variable. When I do it would allow me to call Get-Info with no parameters and the value in the environment variable would be used. If the environment variable does not exist or is empty the user…

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

    We’ll send you updates on this idea

    3 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  16. Ability to delete unlisted module with no downloads

    It would be nice to be able to delete a module that hasn't been downloaded yet and is unlisted. I made a mistake in publishing a module which I unlisted before anyone downloaded it. There is no benefit to me or anyone having it remain in the gallery.

    None of the follwing published reasons for disallowing deletions apply:


    1. Other items may depend on that item. Those items might not necessarily be in this gallery.

    2. Ensures that folks using items without committing the same will not be broken.

    3. Helps ensure that important community owned items are not mass deleted.

    For 1…

    2 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 Gallery  ·  Flag idea as inappropriate…  ·  Admin →

    We understand the ask, & are leaving it as Survey to gauge the interest level.

    For now, you can use the Contact Us link to specify the item & version that you want deleted. Specify why you feel that this is something that should not be left in the Gallery, providing more detail is likely to help.
    The Gallery operations team will investigate and, if it meets what is actually a very high bar, will delete it.

  17. encourage youth to PowerShell

    It would be a great motivation for young admins (e.g. students) to start learn PowerShell if it out of a box has commands concerning desktop computers in a workgroup environment. I think of managing local users, groups, dealing with screen resolution or power management, system updates - just simple stuff for everyday use.

    2 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 →
  18. ConfigurationAST should include resource modules being imported

    The ConfigurationAST added in v4 for PowerShell DSC does a good job at providing resource configuration details. However, to determine what modules are being imported, we should still use the keyword AST to find the resource module names from the Import-DSCResource command. While this is a workaround, it will be easier if ConfigurationAST can provide this information for simplicity.

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

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  19. DSC registry resource support '/' in the registry path.

    DSC registry resource support '/' in the registry path.

    If you use a path containing a / e.g. "HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 40/128" then the builtin registry resource you end up with an error or the wrong registry path being created.

    This config will not work. I've have to create my own module to create the folder and then us the registry resource to create the actual key.

        Registry "DisableCipherRC240128"
    
    {
    Key = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 40/128"
    ValueName = "Enabled"
    ValueType = "Dword"
    ValueData = "0"
    Ensure = "Present"
    Force = $true
    }

    The register resource should support / in the path.

    5 votes
    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 →
  20. Allow Description in Markdown format

    It could be useful to have Markdown formatting in manifest file to provide rich description on PowershellGallery

    7 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 Gallery  ·  Flag idea as inappropriate…  ·  Admin →

    Specific ask for the voters: If you are willing, please add a note what your expectations are, and how you would see this providing extra value in the Gallery when we display this content.

    This type of feature is something we are generally a little bit cautious about.
    Rendering active MD content can include links & other items that result in some amount of risk for users of a site.

  • Don't see your idea?

Feedback and Knowledge Base