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: Import-PSSession no longer works since Win 10 Anniversary Update

    Seems to be since Win 10 Anniversary update recently, connecting to Exchange Online gives this error:

    Import-PSSession : Could not load type 'System.Management.Automation.SecuritySupport' from assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

    also reported here:
    http://answers.microsoft.com/en-us/spark/eb85073b-0234-4f8d-a11d-d6a245286bae?page=3

    4 votes
    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 →
  2. Firewall Rules Documentation on website

    Im working in an environment with strict firewall policies, I'm struggling to find any information on ports used to execute commands such as install-module...

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

    There are 3 basic elements for PowerShell remote access today:
    1. WinRM, which is the basis for PowerShell remoting. There’s a good article here: https://blogs.technet.microsoft.com/christwe/2012/06/20/what-port-does-powershell-remoting-use/
    2. HTTP/HTTPS – this is the vast majority of other remoting. Install-Module, PackageManagement, Invoke-RestMethod, etc. all go over standard internet ports, and generally default to HTTPS.
    3. DCOM ports can specified for CIM-based cmdlets, but it is not the default. You can find out which modules support this option by searching for *.ps1xml in C:\Windows\System32\WindowsPowerShell\v1.0\. Again, that’s not the default.

    Hope this resolves the question.

  3. How do I configure multiple owners of a single project or item?

    My colleague and I contribute to a project and both of us own it, how can I add him as a secondary owner? It appears this isn't possible.

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

    There is documentation for this at https://msdn.microsoft.com/en-us/powershell/gallery/psgallery/managing-item-owners

    A couple tips: The user must have already registered with the PowerShell Gallery, and you must know the PowerShell Gallery user name for the individual, not just their email address.
    If they have forgotten what their user name is, have them log in. The user name will show up in the upper right-hand corner of the screen.
    After that an automated email will be sent to their registered email account. If they don’t see it, have them check junk mail. Email systems regularly filter out mail coming from unknown accounts, particularly if there is a link in the mail (as will be the case for this one).

    Let us know if that does not answer your questions.

  4. Help about* doesn't return about_ topics

    I'm unable to find almost all about topics (ie. aboutarrays) in Powershell 5.0 in both Windows 10 x64 Professional EN-US and PL-PL.
    The only topic I can find by typeing: help about* is aboutCimSession.

    I've already tried to run:
    update-help -force
    and
    update-help -UICulture en-us
    and
    update-help -UICulture en-us -force

    Unfortunately, this doesn't resolve the problem.

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

    We’ll send you updates on this idea

    3 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    completed  ·  Zachary Alexander responded

    We had a bunch of issues with about_ topics in help, but by my testing they should all be resolved now.
    Please open an adminstrative PS prompt and run
    update-help -force
    and let me know if this does NOT fix the issue.

  5. Provider help is missing from PowerShell 5.1

    The ProviderHelp section of the System.Management.Automation.dll-help.xml file is missing from PowerShell 5.1 and later versions of PowerShell 5.0., including 5.0.10586.494.

    As a result, users can't get help for the core providers (except for the certificate provider, which is in the security file), and help is missing for all of the dynamic parameters that the providers add to the cmdlets.

    Also, the Security help file has the provider help section, so Get-Help Certificate works, but even though it has the CmdletHelpPaths section, it is not working (not sure why), so there is no help for the dynamic parameters that the Certificate…

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
    completed  ·  Zachary Alexander responded

    Fixed and validated on 5.1 / Win10. Thanks for the report, please let me know if any issues remain.

  6. Automatically register PSGallery with WMF 5.0

    After installing WMF 5 on Windows 7, the default PSGallery repository is not registered by default. This should just be there so I can get started much quicker.

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

  8. Find-Module doesn't work in ISE (or ISE Preview)

    This should speak for itself:

    PS > Get-PackageSource

    Name ProviderName IsTrusted IsRegistered IsValidated Location


    PSGallery PowerShellGet False True False https://www.powershellgallery.com/api/v2

    PS > find-module ise -Verbose
    VERBOSE: Using the provider 'PowerShellGet' for searching packages.
    VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
    VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
    VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
    VERBOSE: No module found matching 'ise' .

    Find-Module works fine in the console host.

    Spying with Wireshark reveals that while the console host connects to https://www.powershellgallery.com as part…

    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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  9. 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 →
  10. 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 →
  11. BUG: have followed all instruction to load my custom module yet can only load by path

    I have the execution policy set Unrestricted, I've added the folder to the modules path, I have a module in the folder with the same name as the folder, yet I can only load the modules by file path. Any idea why? I need modules to load other modules, I'd like my own folder, and I'd like to not have to keep calling scripts in the same folder.

    PS C:\Users\russell.GOISC> $env:PSModulePath
    [...];C:\Projects\OI2\SiteMaintenanceScripts\PowerShellModules

    PS C:\Users\russell.GOISC> Get-ExecutionPolicy
    Unrestricted

    PS C:\Users\russell.GOISC> Import-Module EZTNameExtensions -Verbose
    Import-Module : The specified module 'EZTNameExtensions' was not loaded because no valid module file was found in any module…

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

    We’ll send you updates on this idea

    completed  ·  2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  12. New-ScriptFileInfo adds all the fields to the scriptfile not just the one you supplied.

    New-ScriptFileInfo add all the fields to the scriptfile and not just the ones you supply. Seems like a lot of "clutter" for information you don't need to specify.

    Can be reproduced by running the msdn example.

    New-ScriptFileInfo -Path "\temp\Temp-Scriptfile.ps1" -Version 1.0 -Author "pattif@contoso.com" -Description "My test script file description goes here"

    Get-Content -Path "\temp\Temp-Scriptfile.ps1"

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

    Thank you for your feedback, but in this case the cmdlet is doing what we expect.

    The goal of New-ScriptFileInfo is to provide developers with the list of metadata items supply that provides value when publishing a script via the PowerShell Gallery, and interacting with it via the PowerShellGet cmdlets. This is consistent with the behavior for New-ModuleManifest.

    You may want to save your own subset of the metadata values, and insert it on your own into files.

  13. Update-ModuleManifest flattening FunctionsToExport into a String

    Using New-ModuleManifest with FunctionsToExport as an array creates the proper field:

    FunctionsToExport = 'function1', 'function2', 'function3'

    But if I run Update-ModuleManifest on the manifest file, the FunctionsToExport will get flattened to a single string:

    FunctionsToExport = 'function1 function2 function3'

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

    We’ll send you updates on this idea

    7 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →

    Sorry for the lag in returning to this thread.
    From the feedback, it looks like this has been corrected in 5.1, and we are unable to reproduce it internally. If someone can reproduce this with either the 5.1 preview, the client Anniversary Edition, or Server 2016 TP5 (& later) PLEASE reactivate this issue. Thank you!

  14. Have separate about_Classes and about_DSC_Classes

    The aboutClasses help file should not have any DSC class information except for a "See Also" reference to a separate aboutDSC_Classes, which will of course have lots of details for DSC.

    This will help combat the perception that PowerShell classes are not "real" classes for serious programmers, and that PowerShell classes were not added just for the sake of supporting DSC.

    The about_Classes file should be further fleshed out so that C#, Java and Python developers will know what to (not) expect when using PowerShell classes.

    7 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 →
  15. Help for Get-ChildItem does not document the new -Depth parameter

    I am running PS Version 5.0.10586.122, and ran Update-Help (as Administrator) and the documentation for Get-ChildItem still does not include the -Depth parameter, which i read about in another MSDN page here: https://msdn.microsoft.com/en-us/powershell/wmf/feedback_getchilditem

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  16. 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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  17. Get-Counter throws NullReferenceException in Powershell 5.0.10586.122

    PS C:\Users\Josh> get-counter
    get-counter : Object reference not set to an instance of an object.
    At line:1 char:1
    + get-counter
    + ~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-Counter], NullReferenceException
    
    + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.GetCounterCommand

    PS C:\Users\Josh> $PSVersionTable.PSVersion

    Major Minor Build Revision


    5 0 10586 122

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  18. Provide PowerShell module or DSC resource to manage Local Security Policy

    Its troublesome task to automate management of local security policy. it will be nice if a DSC resource is provided to manage local security policy. if not, then a module that allows exporting, importing, and set/get of individual local security policy item would be very helpful. ability to identify if a particular local security policy is configured via group policy or not will be great too!.

    4 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 →
  19. WMF5.0 Prod Preview (KB3066437) installation problem

    BUG: WMF5.0 Prod Preview (KB3066437) cannot be installed anymore on 2012 R2
    Since yesterday when I launch WMF5.0 Prod Preview (KB3066437) installation an error message box show up : "the timestamp signature and/or certificate could not be verified or is malformed"

    Indeed : Microsoft Time-Stamp Service certificate is out of date : 20/06/2016 !

    How can I install this Preview version without changing date time on the server (SQL Production server !) ?

    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 →
  20. 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 →
  • Don't see your idea?

Feedback and Knowledge Base