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. New Verb: Deploy

    "Deploy" is a de facto PowerShell verb, as many popular official Azure PowerShell scripts already contain this verb. Considering deployments are a primary scenario for PowerShell, it would be great to add this as an official verb--especially since PSScriptAnalyzer needs to be modified to not flag Azure's official scripts.

    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 →
  2. Get-ComputerInfo: Property BiosSeralNumber is spelled wrong...should be BiosSerialNumber

    Get-ComputerInfo: Property BiosSeralNumber is spelled wrong...should be BiosSerialNumber

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  3. JEA Session Type 'default' with error

    Jea causes an error when you choose 'Default' in SessionType.

    Example of PSSC configuration file :
    SessionType = 'Default'

    PS E:\JEA> $userbase = Get-Credential
    Enter-PSSession -ComputerName localhost -ConfigurationName JEASession1 -Credential $userbase
    cmdlet Get-Credential at command pipeline position 1
    Supply values for the following parameters:
    Enter-PSSession : The term 'Measure-Object' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:2 char:1
    + Enter-PSSession -ComputerName localhost -ConfigurationName JEASession ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

    We’ll send you updates on this idea

    completed  ·  4 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  4. Bug with System.IO.FileInfo arrays

    When trying to join arrays of FileInfo objects, if the first array contains only one element, the following error occurs.

    Method invocation failed because [System.IO.FileInfo] does not contain a method named 'op_Addition'.
    At line:1 char:1
    + $stuff + $stuff1
    + ~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (op_Addition:String) [], RuntimeException
    
    + FullyQualifiedErrorId : MethodNotFound

    It works as expected as long as the first array contains more than 1 element. See example below:

    PS C:\Scripts> $stuff

    Directory: C:\Scripts
    

    Mode LastWriteTime Length Name


    -a---- 10/3/2016 2:01 PM 58 LaunchUpdateAllSubversionWorkingCopies.bat

    PS C:\Scripts> $stuff1

    Directory: C:\Scripts
    

    Mode LastWriteTime Length Name


    -a---- 10/26/2016 1:19 PM 140 DropConnections.sql …

    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 →
  5. Fill in Win32_NetworkAdapterConfiguration CIM class on Nano

    Running 'Get-CimInstance -ClassName Win32_NetworkAdapterConfiguration' in powershell on a Nano server does not return any information. Unless they are officially deprecated, classes like this should work on Nano 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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    completed  ·  Dan Harman [MSFT] responded

    Some underlying components needed for the Win32_NetworkAdapterConfiguration class are missing in the current release of Nano Server. This has been fixed in the upcoming (next) release of Nano Server.

  6. get-package error on ps 5.1

    The behaviour of get-package cmdlet is different compared with 5.

    get-package firefox works on 5 but no on 5.1

    get-package firefox works on 5.1 but no on 5

    1 vote
    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 →
  7. 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 →
  8. 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.

  9. 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 →
  10. 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 →
  11. Install-PackageProvider chocolatey

    I have installed firts nuget with the command Install-PackageProvider –Name nuget -RequiredVersion 2.8.5.204 -Scope AllUsers. Then, I have restarted Powersehell as described in Powershell API.

    Afte that I install chocolatey provider with Install-PackageProvider –Name chocolatey -RequiredVersion 2.8.5.130 -Scope AllUsers, This makes chocolatey available as provider but it doesn't really install the chocolate provider. To get to install chocolatey provider, after that you have to do get-packageprovider -name chocolatey.
    If it is not a bug, it is very confusing.

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

    We’ll send you updates on this idea

    completed  ·  1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  12. Bug: Can't clear command buffer (it persists after PS restart)

    If a bit of sensitive info got onto the command buffer, clearing it via Alt+F7 doesn't work. All I have to do to view the command buffer again is restart PowerShell. Can't find any way to clear the command buffer.

    1 vote
    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 →
  13. Add Support for Flags Attribute with Enum Creation

    Having the ability to create an Enum is great, but it would be made better if support for the Flags Attribute attribute like you can do with creating a C# Enum to allow it to treat supplied values as bit fields to potentially display more values in an Enum based on the value provided.

    A C# example would be like this:

    Add-Type -TypeDefinition @"
    [System.Flags]
    public enum Animals
    {

    Dog = 1,
    
    Cat = 2,
    Bird = 3,
    Lizard = 10

    }
    "@

    I could then do the following...

    [Animals]11

    ...and get back Dog, Lizard

    Where with PowerShell creating the…

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

    As mentioned by Jason in the comments below, this is already supported by adding the [Flags()] attribute to enum definition

  14. 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 →
  15. Bug in Get-Hotfix

    Hi!

    There is actually a bug in Get-Hotfix:

    PS C:> get-culture

    LCID Name DisplayName


    1033 en-US English (United States)

    PS C:> get-hotfix

    Source Description HotFixID InstalledBy InstalledOn


    ERUDAE Update KB3124200 NT AUTHORITY\SYSTEM 01-Jun-16 00:00:00
    ERUDAE Update KB3124262 NT AUTHORITY\SYSTEM
    ERUDAE Security Update KB3124263 NT AUTHORITY\SYSTEM
    ERUDAE Security Update KB3135173 NT AUTHORITY\SYSTEM 02-Oct-16 00:00:00
    ERUDAE Security Update KB3135782 NT AUTHORITY\SYSTEM 02-Oct-16 00:00:00
    ERUDAE Update KB3139907 NT AUTHORITY\SYSTEM 03-Feb-16 00:00:00
    ERUDAE Update KB3140743 NT AUTHORITY\SYSTEM 03-Feb-16 00:00:00

    My computer has been updated just today (March 2nd 2016). But in Powershell we see something like 03/02/2016 which is wrongly translated to 03-Feb-2016. I…

    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 →
  16. Parameter validation attributes incompatible with scriptblock GetNewClosure()

    Votes from Connect: 4

    Original Date Submitted: 7/17/2014 11:38:44 PM

    Description:
    Contact Information
    Handle: Burt.Harris
    Site Name: PowerShell
    Feedback ID: 922679


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

    Problem Description:
    Calling scriptblock's GetNewClosure() in a function with parameter validation attributes on its paramters causes an error. The error message says:

    "Attribute cannot be added because it would cause the variable Options with value to become invalid."

    See http://stackoverflow.com/questions/19775779/powershell-getnewclosure-and-cmdlets-with-validation/24766059#24766059 for discussion on this, and the workaround I found.

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

    Repro Steps: …

    1 vote
    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 →
  17. PowerShell SDK

    WMF 5.0 just released. Where is the latest PowerShell SDK? V2.0? V3.0?

    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 →
  18. Get- cmdlets to have more expandable properties

    Votes from Connect: 5

    Original Date Submitted: 5/29/2015 4:10:34 PM

    Description:
    Contact Information
    Handle: AJ_BE
    Site Name: PowerShell
    Feedback ID: 1378948


    Problem Description:
    It is unlogical a lot of get- powershell commands do not include expanded properties of the objects they retrieve.

    for example with the get-service cmdlet: I can use set-service spooler -startuptype automatic
    but i cannot use: get-service spooler and see the startuptype.

    I NEED to use the Wmi object class for this and for people new to powershell, the wmi objects are a tough subject because they are extremely complex (which is good for experienced users) but…

    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 →

    (Get-Service).StartType was a long-standing request that could not be fulfilled because of limitations in the underlying .NET type (System.ServiceProcess.ServiceController).

    Fortunately, the .NET team added a StartType property in .NET 4.6.1, so it’s available on PowerShell 5.0 in Windows 10 and WMF 5.0.

  19. Need cmdlet to create XML Help files from comment-based help

    Votes from Connect: 12

    Original Date Submitted: 8/9/2014 3:50:43 AM

    Description:
    Contact Information
    Handle: Ashley McGlone
    Site Name: PowerShell
    Feedback ID: 941582


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

    Problem Description:
    The process of creating XML help files is documented on MSDN, but no native tools exist to create these. PowerShell is supposed to help IT Pros automate, but they hit the wall when trying to figure out XML help. Inline help is easy. This is hard. Please create cmdlets to facilitate the creation of XML help files and updateable help files. For example, why not…

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

Feedback and Knowledge Base