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 a favicon to the gallery

    The poor PS gallery tab and bookmark look so sad and grey... :,-(

    https://imgur.com/GwfMpzd

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

    We’ll send you updates on this idea

    investigating  ·  1 comment  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
  2. Get-NetFirewallRule help page parameters section correction

    Description of the parameter claims, wildcards are accepted, but the "Accept wildcard character?" value is false. Running
    get-netfirewallrule -description *
    results in the retrieval of a portion of the firewall rules retrieved without the parameter (535/556 when I ran it). I suggest editing the help file, as well as checking why the parameter discludes a portion of the firewall rules.
    -Description <String[]>

        Specifies that matching firewall rules of the indicated description are retrieved. Wildcard characters are
    
    accepted.

    This parameter provides information about the firewall rule. This parameter specifies the localized,
    user-facing description of the IPsec rule.

    Required? false
    Position? named …

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

    We’ll send you updates on this idea

    investigating  ·  0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  3. DSC File Resource Recurse directory description is wrong

    The documentation for the DSC File Resource states that the Recurse is a) only valid for directories and b) only for sub-directories. This would imply that any files in a SourcePath would be copied. However, they are not. $Recurse has to be $true to pull files. If not, it just makes sure the directory exists.

    However, this requires that I have the whole recursive directory kept on my sourcepath as well vs. just a few files.

    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 →
  4. BUG: WMF 5.0 RTM PSSession management throws WERFault exception

    v5.0.10586.122

    Connecting to an existing PSSession sometimes throws an exception error in the PS host. Using a script developed in WMF 4 to handle and re-use sessions now causes exceptions. I suspect something has changed in how WMF 5 handles sessions but I can't seem to get to the bottom of it.

    Fault bucket 125744894502, type 5
    Event Name: PowerShell
    Response: Not available
    Cab Id: 0

    Problem signature:
    P1: PowerShell_ISE.exe
    P2: 10.0.10586.122
    P3: System.ObjectDisposedException
    P4: System.ObjectDisposedException
    P5: SessionTransportManager+WSManAPIDataCommon.Dispose
    P6: Runtime.InteropServices.SafeHandle.DangerousAddRef
    P7: unknown
    P8:
    P9:
    P10:

    Attached files:
    C:\Users&lt;home>\AppData\Local\Temp\WERB13.tmp.WERInternalMetadata.xml

    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\CriticalPowerShellISE.ea2d14b4791b93fd183c2c1c6aadb549cfe61527700000000_1ad123ac

    Analysis…

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

    We’ll send you updates on this idea

    investigating  ·  2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  5. Double click highlight occurrences

    Double clicked strings and integers should be clearly highlighted (like in Notepad++ or in VSCode) if there are multiple occurrences of the same word or number.

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

    We’ll send you updates on this idea

    8 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  6. install-package policy execution

    To install packages with package manager it's necessary to set the execution policy. It's not said in the API, and I think is not trivial for someone who is learning poershell. In fact if you don't set the policy, you can install packages, there is not error neither feedback about it is not being really installed, and when the process finishes you can see the status as installed whe you do get-package <package-name>. It is very confusing

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

    We’ll send you updates on this idea

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

    This is an issue specific to the Chocolatey provider, which we acquired from that team. We will continue to work to get it resolved, but have no solution available at this time.

  7. DSC File Resource - Modify Attributes Without Having to Delete

    File resource does not allow modifications to the target without first having to delete the target.

    Example:
    File HiddenFiles {

    DestinationPath = &quot;C:\Deploy\HiddenFile.txt&quot;
    
    Contents = &quot;HiddenFile Contents&quot;
    Attributes = &quot;ReadOnly&quot;,&quot;Hidden&quot;,&quot;System&quot;
    Ensure = &quot;Present&quot;

    }

    This should change the file attributes but it doesn't unless the file is manually deleted

    File resource does not allow modifications to the target without first having to delete the target.

    Example:
    File HiddenFiles {

    DestinationPath = &quot;C:\Deploy\HiddenFile.txt&quot;
    
    Contents = &quot;HiddenFile Contents&quot;
    Attributes = &quot;ReadOnly&quot;
    Ensure = &quot;Present&quot;

    }

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

    Josh,

    Thanks for the feedback. The file resource should set the attributes on an existing file. I have not been able to duplicate your issue in Windows 10. If you are still experiencing it, please add more details.

    Thanks,

    MarkG

  8. JEA is not correctly showing VisibleAliases

    Aliases exported from imported module are not shown if role capabilities file contains VisibleAliases="*"
    Module
    <PRE>
    function Test
    {
    [Alias("TestAlias")]
    param()
    Write-Output 1
    }

    Export-ModuleMember -Function Test -Alias TestAlias</PRE>

    Without VisibleAliases set in RoleCapabilites file TestAlias is visible tested with Get-PsSessionCapability cmdlet but if VisibleAliases="*" appears in rolecapabilites file then TestAlias is not imported

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

    We’ll send you updates on this idea

    investigating  ·  0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  9. Enable PowerShell module auto-discovery in DSC

    I recently discovered that in my DSC resource I can't call a powershell cmdlet that internally calls into another powershell cmdlet - that fails because DSC doesn’t explicitly import the full powershell module, but only imports specific .psm1 files.

    Note, same (cmdlet calling another cmdlet) works perfectly fine when executed from Powershell cmd prompt. Let's fix it for DSC.

    12 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 →
    investigating  ·  Mark Gray responded

    Thank you for your feedback!

    Based on its current ranking compared to other feedback items and product schedule, work on this item is pending (and will be driven by) further customer input. If you did not open this issue and are also impacted by it, please vote this item up.

    MarkG

  10. Lastest Windows Insider Builds - Collection is read-only

    Attempting to import a module and run a PowerShell script is now resulting in an error about the collection is read-only.

    C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1'"

    Results in
    C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1 : Collection is read-only.

    At line:1 char:210
    + ... ller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunn .
    ..
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     + CategoryInfo          : NotSpecified: (:) [chocolateyScriptRunner.ps1] 
    
    , NotSupportedException
    + FullyQualifiedErrorId : System.NotSupportedException,chocolateyScriptR
    unner.ps1

    This is new and unexpected behavior. Here is the issue log for more information: https://github.com/chocolatey/choco/issues/659

    Here is the actual script in question - https://github.com/chocolatey/choco/blob/0.9.9.11/src/chocolatey.resources/helpers/chocolateyScriptRunner.ps1 - it could be that we…

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

    We’ll send you updates on this idea

    investigating  ·  4 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  11. Officially release more DSC Resources

    We only have around 12 officially released DSC resources. I had expected PowerShell V5 would include more officially supported resources, but it was not to be. Please releae them, preferably via Windows Update.

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

    We’ll send you updates on this idea

    6 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →

    What would you describe as “official”? We are moving forward with some of the x-named DSC resources in the Gallery, with the intent of removing the x and fully supporting them once they hit a certain level of quality. Is that sufficient?

  12. KB3000850

    KB3000850 is not part of the Azure SQL 2014 image, and takes over an hour to install (often timing out) before DSC Extension can run. When update fails to install, causes DSC to fail as well. Easy to reproduce - configure VM image based on SQL 2014 and install DSC using templates.

    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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  13. Option to disable scroll-to-prompt on left mouse click in ISE console window.

    In PowerShell v3 there was a "feature" added, that moved cursor/ scrolled down to prompt whenever console window gets focus. It makes selecting text in output from previous commands a real nightmare.

    I would love to get rid off this "feature", or if not possible - at least have an option to turn it off. If possible, make it a default behavior.

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

    We’ll send you updates on this idea

    4 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  14. Multiple ConfigurationNames Results In Failure During Pull

    When multiple configurations names are specified in LCM configuration the pull fails get obtain any configuration.

    LCM Config Example

        ConfigurationRepositoryWeb HillIntl-Pull
    
    {
    ServerURL = &quot;<a rel="nofollow noreferrer" href="http://server1:8080/PSDSCPullServer.svc&quot;">http://server1:8080/PSDSCPullServer.svc&quot;</a>;
    AllowUnsecureConnection = $true;
    RegistrationKey = &quot;aaaa333-6c83-4636-a0cb-39b88a968849&quot;;
    ConfigurationNames = @(&#39;BaseConfig&#39;,&#39;WebServer&#39;);
    }

    Resulting errors

    Job {C7312E94-D405-11E5-80B5-00155D086627} :
    Message UpdateMetaConfig is not a valid value for GetActionResponse.
    HResult -2146233087
    StackTrack at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
    at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()
    at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc()

    Job {C7312E94-D405-11E5-80B5-00155D086627} :
    This event indicates that failure happens when LCM is trying to get the configuration from pull server using download manager NULL. ErrorId is 0x1. ErrorDetail is A generic exception occurred during…

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

    We’ll send you updates on this idea

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

    Thanks for the feedback Daniel. We are looking into the issue and will either get back to you with any follow-up questions or create a bug and fix the issue.

    Thanks for helping make DSC better!!
    MarkG

  15. Find in ISE needs to be able to wrap rather than stopping when it reaches the end of the file

    Find in ISE starts from the cursor position and stops at the end of the file. This is extremely annoying behavior since to perform a full file search you need to move the cursor to the beginning of the file before beginning "Find".

    Find needs the ability to find within an entire file from anywhere the search is started -- just like notepad++, notepad2, and any other modern text editor.

    19 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 →
  16. WMF 5 Update

    I am trying to install "Win8.1AndW2K12R2-KB3134758-x64.msu" onto a Windows 8.1 x64 Enterprise, WMF 4.0 .Net4.5 and latest security patches. from March 2016.

    Each time I run the update I get an error saying 'Update is not applicable to this computer'

    Any help would be much appreciated.

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

    We’ll send you updates on this idea

    investigating  ·  3 comments  ·  Package Management  ·  Flag idea as inappropriate…  ·  Admin →
  17. Bug in ISE Preview 5.1.1

    Hi Folks,

    I'm running ISE Preview 5.1.1 downloaded from the PowerShell Gallery. When I hit the 'Show Command Window' button in the menu bar (or type show-command) I get this error.

    PS Library:&gt; show-command
    show-command : [A]System.Collections.Generic.List1[Microsoft.PowerShell.Commands.ShowCommandExtension.ShowCommandCommandInfo]
    cannot be cast to [B]System.Collections.Generic.List
    1[Microsoft.PowerShell.Commands.ShowCommandExtension.ShowCommandCommandInfo].
    Type A originates from 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at
    location 'C:\Windows\Microsoft.Net\assembly\GAC64\mscorlib\v4.04.0.0.0b77a5c561934e089\mscorlib.dll'. Type B originates from
    'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location
    'C:\Windows\Microsoft.Net\assembly\GAC64\mscorlib\v4.04.0.0.0
    b77a5c561934e089\mscorlib.dll'.
    At line:1 char:1
    + show-command
    + ~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Show-Command], InvalidCastException
    
    + FullyQualifiedErrorId : System.InvalidCastException,Microsoft.PowerShell.Commands.ShowCommandCommand

    I'm running…

    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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  18. Error in About_WorkflowCommonParameters

    In the About_WorkFlowCommonParameters, there is an error in the example describing the -PSParameterCollection, The example reads:
    -PSParameterCollection @{

         PSComputerName=&quot;Server01&quot;;  PSElapsedTimeoutSec=10;
    
    PSConnectionRetryCount=6},
    @{PSComputerName=&quot;*&quot;; PSElapsedTimeoutSec=20}

    In the second hash table, the example has '*' for the computer name. This is wrong - it needs a real computer name or PowerShell Gives and error.

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  19. InformationAction and InformationVariable show up as regular (not common) parameters in help documentation

    The InformationAction and InformationVariable common parameters are all messed up in the docs.

    For example, if you run:

    Get-Help Get-Service -Parameter InformationAction # or InformationVariable

    You get documentation for the ComputerName parameter.

    If you run:

    Get-Help Get-Service

    the syntax section shows the possible values for InformationAction, yet the syntax section in this command does not:

    Get-Help Add-AzureRmAccount

    And seriously, we don't need command syntax sections more cluttered up than they already are, nor do we need documentation for these parameters to be messed up by leaving that documentation up to each individual command. These should simply be documented in about…

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

    Thanks for the suggestion. This has been filed as a doc bug.

    Based on its current ranking compared to other feedback items and product schedule, work on this item is pending (and will be driven by) further customer input. If you did not open this issue and are also impacted by it, please vote this item up.

  20. Bug: WMF5 install fails on Windows 7

    I get this error in Event Viewer:
    Windows update "Update for Windows (KB3134760)" could not be installed because of error 2148204800 "No signature was present in the subject."

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

    Followed up in email. This may be due to the fact that on March 3 KB3134760 was not fully populated. That work was not completed until March 7. Please review and respond to email when possible.

  • Don't see your idea?

Feedback and Knowledge Base