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. PowerShell Core for linux

    PowerShell Core will run in Windows Sever 2016 core that contains only the .net core.

    Now that .net core is available for linux.. would nice to create and run powershell script on linux! Not asking to port all Microsoft cmdlets just basic one that allow to script things in linux like invoke-restmethod, etc

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

    We’ll send you updates on this idea

    44 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  2. snippets

    PowerShell ISE - Where are the default snippets after Win10 Upgrade?

    So I've upgraded to Win10Pro 1803 17134.1, opened my trusty PowerShell ISE, pressed CTRL+J and nothing happens!? Even the Get-ISESnippet is not showing any results. I'm using the default snippets and don't have any custom snippets under my documents / PowerShell folder.

    It seems to be related to OneDrive or Windows 10 update as both my Desktop and Laptop have the same problem.

    According to JRV the same issue occurs on 1809 builds.

    Link: https://social.technet.microsoft.com/Forums/en-US/47ded9fb-0501-4953-92cc-ef55dbf86fbe/powershell-ise-where-are-the-default-snippets-after-win10-upgrade?forum=winserverpowershell

    Best Regards,
    Glenn

    $PSVersionTable

    Name Value


    PSVersion 5.1.17134.1

    PSEdition Desktop

    PSCompatibleVersions {1.0, 2.0, 3.0,…

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

    We’ll send you updates on this idea

    19 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  3. Change from edb file to SQL Server database for Desired State Configuration Pull services

    Votes from Connect: 6

    Original Date Submitted: 4/25/2015 5:54:58 AM

    Description:
    Contact Information
    Handle: Ihadadream
    Site Name: PowerShell
    Feedback ID: 1275973


    Problem Description:
    If Pull services databases change to SQL Server, we could have high availability and build a real pull infrastructure. It also brings possibility to have tierce applications that read datas and build reports using SSRS, etc.

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

    Repro Steps:

    Internal BugId: 14408

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

    We’ll send you updates on this idea

    5 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  4. Long path support

    PowerShell really needs to be able to handle long paths.
    It is really tedious having to drop out to RoboCopy to enumerate/copy/etc. files with more than 260 character paths.
    We all know that these paths exist on our file servers etc., yet core support for them in various bits of Windows (including the newer ones like PowerShell) still seems to be lacking.

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

    We’ll send you updates on this idea

    4 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  5. WMF 5.0 RTM Should Be Available On Client Operating Systems

    The WMF 5.0 RTM is only available for Server operating systems at present. Please make the same build available for client OSes as well. consistency is key in any management endeavor, and having to consider one more unnecessary complexity when composing scripts is a problem.

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

    We’ll send you updates on this idea

    7 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  6. Powershell ISE crashes on Ctrl+Space Intellisense

    my "Ideas" is Powershell ISE should not crash.

    https://github.com/PowerShell/PowerShell/issues/6846

    teps to reproduce
    Use Windows Powershell ISE on Windows Build 17134
    Enter the name of any cmdlet, a dash, then press ctrl+Space.
    Get-Help -[Ctrl+Space]
    Expected behavior
    Should show intellisense popup.
    Actual behavior
    Instead of an intellisense dropdown, a small dot appears.

    Messagebox as follows, followed by closing:

    Windows PowerShell ISE - Error

    An unexpected error has occurred, and Windows PowerShell ISE must close.

    OK

    Running in the visual studio debugger shows two exceptions, one from Xaml (associated with the appearance of the dot) the other a NullReferenceException which appears to occur…

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

    We’ll send you updates on this idea

    11 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  7. powershell.exe -Command - is broken on Windows 10 14393

    See the details at https://social.technet.microsoft.com/Forums/windowsserver/en-US/4a52d235-5b10-4e4d-9c24-c2b354a57c26/invoking-powershellexe-with-command-reading-input-from-stdin-broken-in-windows-10-14393

    I wrote a post that includes the source for a tiny C# program that demonstrates that trying to launch powershell.exe with its "-Command -" parameter to get the script from StdIn no longer works after installing the Anniversary Update on Windows 10. Does not happen on Server 2016 TP5. I can duplicate the details here if that makes more sense.

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

    We’ll send you updates on this idea

    9 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →

    The fix for this issue has been backported from 6.0-alpha to 5.1 in the latest fully patched Win10 Anniversary Update. This repro should show powershell.exe -Command with -RedirectStandardInput working, and also demonstrates the version of PowerShell you should be on.

    C:\temp> set-content .\in.txt ‘$psversiontable’ -Encoding ascii
    >> Start-Process -FilePath ‘powershell.exe’ -ArgumentList “-Command -” -RedirectStandardOutput "out.txt
    " -RedirectStandardInput “in.txt”
    C:\temp> cat .\out.txt

    Name Value
    -- -
    PSVersion 5.1.14393.206
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
    BuildVersion 10.0.14393.206
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    Note: if your problems aren’t fixed, and you’re on this version of PowerShell 5.1 or greater, please file another issue here on UserVoice to address it.

    Thanks!
    Joey

  8. update-help : Failed to update Help for the module(s) 'Provisioning'

    I receive the following error when running Update-Help in PowerShell.

    PS C:\WINDOWS\System32\WindowsPowerShell\v1.0\Modules\Provisioning> update-help
    update-help : Failed to update Help for the module(s) 'Provisioning' with UI culture(s) {en-US} : Unable to retrieve
    the HelpInfo XML file for UI culture en-US. Make sure the HelpInfoUri property in the module manifest is valid or
    check your network connection and then try the command again.
    At line:1 char:1
    + update-help -force
    + ~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ResourceUnavailable: (:) [Update-Help], Exception
    
    + FullyQualifiedErrorId : UnableToRetrieveHelpInfoXml,Microsoft.PowerShell.Commands.UpdateHelpCommand

    PowerShell info:
    PS C:> $PSVersionTable.PSVersion

    Major Minor Build Revision


    5 1 15063 138

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

    We’ll send you updates on this idea

    completed  ·  10 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  9. The PowerShell Gallery should have a rating system similar to TechNet script gallery

    A rating system should be leveraged to allow users to speak to the quality /usefulness of a given script. The PS Gallery allows you to sort by download count, but this is only an indication of popularity. It's certainly feasible that there are highly downloaded scripts that are unusable. Users should be able to pivot off of script rating and download count.

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

    We’ll send you updates on this idea

    6 comments  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →

    We have implemented this by adding the ability to do “likes” for items in Facebook, LinkedIn, and Twitter, and by adding the ability for individuals to make comments on an item.
    These two features can be used to indicate the items that are good, and to raise specific concerns for items, while avoiding the issue with “votes” where anonymous negative votes were used inappropriately.

  10. Please hide the API Key in the PowerShell Gallery UI

    When you log into the PowerShell Gallery, if you click on your username you're taken to your account page. This account page contains your API Key in plain text, visible by default. Since the API Key is the key that is used to publish your modules/scripts to the Gallery, the UI should hide these "keys to the kingdom" by default with an option in the UI to show the Key. I have seen many demos of the Gallery where the API Key is shown when it simply shouldn't be shown at all, simply because the person delivering the demo clicked…

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

    We’ll send you updates on this idea

    7 comments  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
  11. BUG: WMF5 RTM $PSModulePath

    After installation of the WMF5 RTM the $PSmodulePath is RESET to default.
    Update the $PSModulePath instead of resetting it.
    If additional modules are installed these are not available after installation of WMF5 RTM.

    WorkAround : Store your system variable PSModulePath before installing WMF5
    After installation of WMF5 restore your original PSModulePath

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

    We’ll send you updates on this idea

    10 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  12. get-psdrive & abnormal I/O

    Hello,

    Since WMF 5.0, I encountered abnormal disk latency, when running DSC.
    Process Monitor showed that WMI host process was doing a lot of WriteFile operation to the folder: C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\PowerShell\CommandAnalysis\PowerShellAnalysisCacheEntry*
    the amount of operation is increasing over time (up to 200.000 write operations in my case) each time dsc configuration is being executed…
    All those operations are triggered when calling get-psdrive which is calling the module manifest Microsoft.Powershell.Security.psd1

    I could reproduce it on a new VM with only WMF 5.0 installed, LCM configured in push mode using the default settings and a single test resource in the configuration…

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

    We’ll send you updates on this idea

    8 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  13. MinimumCompatibleVersion cause "Cannot find module PSDesiredStateConfiguration_1.0 from the server"

    Box


    DSC PULL Server : Windows Server 2012 R2 + WMF5 RTM
    DSC PULL Client : Windows Server 2012 R2 + WMF5 RTM


    Description of Issue:

    In WMF5.0 there is PsDscRunAsCredential to target dedicated user to make it so. However mof document created by configuration with this property, will cause "Cannot find module PSDesiredStateConfiguration_1.0 from the server http://DSCPull:8080/PSDSCPullServer.svc/Modules(ModuleName='PSDesiredStateConfiguration',ModuleVersion='1.0')/ModuleContent" exception and could not apply configuration.

    Reproduce Procedure:


    • Note: It's no meaning with this configuration to target PsDscRunAsCredential, but please understand this is just a simple reproduce configuration


    • Create configuration to use WMF5 functionality, in this case PsDscRunAsCredential.


    ```powershell
    configuration FeatureNetCore …

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

    We’ll send you updates on this idea

    9 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  14. Uninstall-Package -Version is Evil!!

    It is evil because the Version parameter is an alias for - wait for it - MinimumVersion! So if you have Foo v1.0 and Foo v2.0 installed on your machine and you want to uninstall v1.0 - you know because you now have 2.0 and no longer need v1.0 - you say hey PowerShell "Uninstall-Package -Name Foo -Version 1.0". And PowerShell will proceed to uninstall v2.0!! Because it is following MinimumVersion semantics i.e. the highest version number >= the specified "minimum version". But you didn't specify "-MinimumVersion", you specified "-Version".

    A suggested fix is to change Version to be an…

    18 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 work was completed and is available in WIndows 10 anniversary updated, Server 2016 RTM and GA builds, and WMF 5.1.

  15. PS has to be restarted to run a script that was unblocked during the same session

    If your execution policy is RemoteSigned and you try to execute a downloaded, unsigned script, PowerShell reports an error (as it should.) However, if you then run Unblock-File on that same script and try to run it again, you continue to get the error until you restart PowerShell.

    I did some digging, and it turns out that the method PowerShell uses to determine the security zone for a file (IInternetSecurityManager.MapUrlToZone) uses caching, by default. This method has a flag called MUTZDONTUSE_CACHE, which I have confirmed does fix the problem, but will require a code update from the PowerShell…

    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. Get-Help -Online in 5.0 opens core cmdlet help for 4.0

    For the core modules in PowerShell 5.0, Get-Help -Online opens the help for PowerShell 4.0, not for PowerShell 5.0. Typically, -online gets help for the latest version of the module by default.

    For example: Get-Help Import-Module -Online
    ...opens "https://technet.microsoft.com/library/af616c24-e122-4098-930e-1e3ea2080ade(v=wps.630).aspx", the 4.0 version of help.

    That's because the first related link in the XML help topic has the FWLink for the 4.0 topic.

    I suspect this is a bug caused by an incomplete understanding of how -Online works. The tool (or person?) that was supposed to update the links for 5.0 didn't know how it worked and updated only…

    16 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 →
  17. Microsoft.PowerShell.Archive module should be open source

    The functionality in the Microsoft.PowerShell.Archive module is already human readable (it's just a script module with a manifest). It would be better if this was open source so that pull requests could be submitted against it to make it better (fixing the lack of custom PS drive support, supporting nupkg/other common zip package extensions, downlevel support which is easy to do). Please make it so.

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

    We’ll send you updates on this idea

    4 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  18. Powershell Gallery Add Ablity To Filter Out DSC Resources

    Votes from Connect: 5

    Original Date Submitted: 8/19/2015 7:06:54 PM

    Description:
    Contact Information
    Handle: JoshuaLinde
    Site Name: PowerShell
    Feedback ID: 1687011


    Problem Description:
    Please consider enabling filtering on the https://www.powershellgallery.com/packages page so you can filter out DSC resources.

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

    Repro Steps:

    Internal BugId: 15749

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

    We’ll send you updates on this idea

    completed  ·  3 comments  ·  Package Management  ·  Flag idea as inappropriate…  ·  Admin →
  19. Get-Help cmdlet fails to show about topics when invalid module is installed

    When a malformed module is present on a computer, the Get-Help cmdlet stops working when viewing about help topics.

    Steps to reproduce:
    1. Create a new module directory in one of PowerShell's module path named "fubar".
    2. Create an empty "fubar.psd1" file in that module directory.
    3. Run help about_functions_advanced_parameters. Note the error [1].

    I would expect PowerShell to fail a little more gracefully. Than a NullReferenceException.

    [1]
    > help aboutfunctionsadvanced_parameters
    Get-Help : Object reference not set to an instance of an object.
    At line:55 char:7
    + Get-Help @PSBoundParameters | more
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified:
    10 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    6 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  20. Installing modules from an internal Nuget based gallery fails in WMF5 RTM

    After installing WMF5 RTM on down-level systems, or upgrading to Windows 10 1151, modules published to an internal Nuget based gallery fail to install, update, or save.

    Steps to reproduce:

    find-module -Repository mitrenuget -name xSmbShare | install-module
    WARNING: Could not get response from query
    'https://nexussrv1.mitre.org/service/local/nuget/nuget-releases/package/xSmbShare/1.1.0.0'.
    WARNING: MSG:SourceLocationNotValid «https://nexussrv1.mitre.org/service/local/nuget/nuget-releases/»
    PackageManagement\Install-Package : Package 'xSmbShare' failed to install.
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1470 char:34
    + ... $null = PackageManagement\Install-Package @PSBoundParameters
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ResourceUnavailable: (C:\Users\rdean\...xSmbShare.nupkg:String) [Install-Package], Excep
    

    tion

    + FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPac
    

    kage

    Debugging this further with Fiddler produces the following response:

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head> …

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

    We’ll send you updates on this idea

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

    Thankyou for helping us understand the issue. Server TP5 has the fix included, as will future releases of WMF and Package Management.

← Previous 1 3 4 5 6
  • Don't see your idea?

Feedback and Knowledge Base