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. MinimumCompatibleVersion still causes "Cannot find module PSDesiredStateConfiguration_1.0 from the server"

    Although a very similar issue has been resolved in WMF5.1 we are encountering an issue when working with partial configurations.

    It seems that the MinimumCompatibleVersion for the complete configurations is taken from the "first" (alphabetical order) partial configuration. If this happens to be a 2.0.0 configuration then other partials which were 1.0.0 cannot load the PSDesiredStateConfiguration module.

    Please take a look at the reproduction in the attachment.
    We reproduced this on windows server 2012r2, 2016 and 2019 and it is causing a very blocking issue for us.

    Edit; since the attachments dont seem to work:

    if (-not $inputCredential)
    {

    $inputCredential
    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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  2. Invoke-WebRequest returned object hangs when accessing Links property

    OS: Windows 7 - 10

    Name : ConsoleHost
    Version : 5.0.10586.117
    InstanceId : 078d4e23-84fd-433c-a831-37bb0935166e
    UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
    CurrentCulture : en-US
    CurrentUICulture : en-US
    PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
    DebuggerEnabled : True
    IsRunspacePushed : False
    Runspace : System.Management.Automation.Runspaces.LocalRunspace


    Not working example:

    $releases = 'https://github.com/hluk/CopyQ/releases'
    $downloadpage = Invoke-WebRequest -Uri $releases -UseBasicParsing
    $download
    page.links # <-- hangs here

    Other properties seem to work normally.


    This example uses basic parsing and works without out. However, the behavior doesn't generally depend on this setting and I had sites that hang on many occasions.

    The following issues seems related:

    https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/11088744-invoke-webrequest-hangs-in-some-cases-unless-use
    https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/11515881-invoke-webrequest-hangs-freeze-at-many-websites

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

    We’ll send you updates on this idea

    survey  ·  4 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  3. Req: JEA add ability to define parameter as mandatory in psrc

    Currently you can define what parameters are exposes and if needed, you can provide a validateset or validatepattern for the parameter. What I can't do is specify the parameter in question should be mandatory even though the cmdlet or function does not enforce its usage.
    E.g.: I define the following in my psrc
    VisibleCmdlets = @{

    Name = &#39;Get-Process&#39;
    
    Parameters = @{
    Name = &#39;Name&#39;
    ValidateSet = &#39;ZoomIt&#39;
    }

    }

    this does not restrict the user from just typing Get-Service and have every service returned.
    Current workaround is to create a proxy function and expose that instead of the cmdlet. …

    11 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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  4. Class based DSC Description Attribute

    Add a description Attribute or extend the DscProperty and DscResource attributes to allow for descriptions that should be surfaced in the generated MOF file.

    Looking at how the MOF file is currently generated using Reflection this should be easy to implement.

    11 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 →
  5. Bug: Copy-Item -FromSession Fails if Local Machine Doesn't Have the Drive Being Copied From

    TLDR

    In the title. If you copy from the F:\ drive on the remote machine and the local machine doesn't have an F:\ drive, failure mode ensues.

    Scenario:

    Bob wants to copy a test.txt from &quot;F:\PowerShell&quot; on RemoteServer to &quot;C:\Users\Bob&quot; on LocalMachine.

    $Session = New-PSSession -ComputerName RemoteServer -Credential (Get-Credential RemoteDomain\Bob)
    
    Copy-Item -FromSession $Session -Path &quot;F:\PowerShell\Test.txt&quot; -Destination &quot;C:\Users\Bob&quot;

    Result:

    > Copy-Item : A parameter cannot be found that matches parameter name 'FromSession'.

    Notes:


    1. Bob has full permissions to both the F:\ drive and the file on RemoteServer.

    2. Bob is able to successfully copy files from C:\ and D:\ on the RemoteServer…
    11 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  6. out-host paging doesn't work in ISE

    Votes from Connect: 4

    Original Date Submitted: 12/27/2014 2:18:58 PM

    Description:
    Contact Information
    Handle: john.s2011n
    Site Name: PowerShell
    Feedback ID: 1066960


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

    Problem Description:
    | out-host paging or | more doesn't work in iSE console pane (bottom pane)
    for example Get-process | out-host paging
    Hope this be added in PS 5.0

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

    Repro Steps:
    Expected Results:

    Internal BugId: 13163

    11 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 →
  7. Powershell editor tab/indent size

    Votes from Connect: 12

    Original Date Submitted: 11/7/2014 1:29:30 AM

    Description:
    Contact Information
    Handle: SPGC
    Site Name: PowerShell
    Feedback ID: 1022999


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

    Problem Description:
    PLEASE can we have the option of changing the tab size in the editor as well as the option to replace tabs with spaces etc. as is generally available in most editors!

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

    Repro Steps:
    Expected Results:

    Internal BugId: 13090

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

    We’ll send you updates on this idea

    1 comment  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  8. Test-Path does not support PSCredential

    Votes from Connect: 4

    Original Date Submitted: 8/12/2014 2:16:43 AM

    Description:
    Contact Information
    Handle: Graeme Bray
    Site Name: PowerShell
    Feedback ID: 943873


    Frequency: Always Happens
    Regression: I do not know if this issue existed previously

    Problem Description:
    Test-Path states that it supports a PSCredential, however it does not and errors when you attempt to pass a Credential object to it. This should either be removed or it should be changed to allow the passage of credentials.

    This can especially be an issue if there is no trust between domains/forest and you have to pass a credential in a script that…

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  9. Please enable port forwarding within PowerShell

    The very cool features on linux is about the port forwarding when we ssh to a remote server.
    I hope PowserShell come with these cool things.

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

    We’ll send you updates on this idea

    0 comments  ·  WinRM  ·  Flag idea as inappropriate…  ·  Admin →
  10. Copy headers when copying from Out-GridView

    It would be great to copy headers for all the columns when copying data from the Out-GridView table lists.

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

    We’ll send you updates on this idea

    survey  ·  2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  11. Compress-Archive throws "OutOfMemory" on large folders

    When using Compress-Archive on a very large folder, I am getting a "OutOfMemory Exception" error. This also happens when I pipe the folder from Get-ChildItem.

    PS E:&gt; Compress-Archive -Path \servername\downloads\foldername -DestinationPath e:\Foldername_bef
    ore-12-01-2016.zip -CompressionLevel Optimal
    Exception calling "Write" with "3" argument(s): "Exception of type 'System.OutOfMemoryException' was thrown."
    At
    C:\windows\system32\windowspowershell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:809
    char:29
    + ... $destStream.Write($buffer, 0, $numberOfBytesRead)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    
    + FullyQualifiedErrorId : OutOfMemoryException

    PS E:&gt; $Psversiontable

    Name Value


    PSVersion 5.0.10586.117
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.10586.117
    CLRVersion 4.0.30319.34209
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    PS E:&gt;

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

    We’ll send you updates on this idea

    3 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  12. -IgnoreCertificateCheck or -SkipSslVerification parameter for [Invoke-WebRequest & Invoke-RestMethod]

    Invoke-WebRequest & Invoke-RestMethod need a parameter to easily skip/ignore checking for a valid certificate of https uri's. This could be required for a number of reasons such as development site only using self signed certificate while testing.

    10 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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  13. BUG: new-localuser fails to allow connection to Microsoft account

    The New-LocalUser cmdlet available in Windows 10 Anniversary Update cannot perform a function described in the documentation.

    Local user accounts may be connected with existing Microsoft accounts. New-LocalUser should support this by accepting a -Name parameter of the form "MicrosoftAccount&lt;user>@outlook.com". This is described in the detailed help.

    However this fails because the parameter fails validation as it is over 20 characters in length (already true with "MicrosoftAccount&quot; and "@outlook.com" let alone the "actual" user name). The 20 character limit is valid for a regular local account name, but shouldn't be valid for an MS account name.

    There appears no other…

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

    We’ll send you updates on this idea

    survey  ·  3 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  14. Add Format method to all output streams

    When returning strings to the host, for example by using throw or inputting a standard string into code such as: $var = 'Hello world'
    We're able to use the format method to insert variables like so:

    $var1 = 'World'
    'Hello {0}' -f $var1

    To keep this style of formatting consistent across PowerShell itself (and also C#) can the format method be added to other output streams such as Write-Verbose, Information , Output etc.

    This would provide an easier learning curve for anyone with experience in other languages and would also be a lot nicer to look at as opposed to…

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

    We’ll send you updates on this idea

    2 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  15. $url = 'http://www.bloomberg.com/professional/downloads/'

    I believe I have a bug with Invoke-Webrequest.

    $url = 'http://www.bloomberg.com/professional/downloads/&#39;

    Invoke-WebRequest -UseBasicParsing -Uri $url "

    Or

    Invoke-WebRequest $url "

    Using invoke-webREquest on that URL Hangs /restarts ISE for me.

    I am using powershell 4.0 on windows 7 Sp1 64 bit.

    Name : Windows PowerShell ISE Host
    Version : 4.0

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

    We’ll send you updates on this idea

    3 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  16. Get-Help needs to work better in the face of multiple versions of a module

    I understand when Get-Help shows me multiple results for the same command when there are different sources of the same command e.g.:

    4> get-help format-hex

    Name Category Module Synopsis


    Format-Hex Function Microsoft.PowerShell.U... ...
    Format-Hex Cmdlet Pscx PSCX Cmdlet:

    However this doesn't make sense when it is just different versions of the same command:

    8> get-help about_psreadline

    Name Category Module Synopsis


    aboutPSReadline HelpFile
    about
    PSReadline HelpFile

    I think Get-Help needs to be smart about this latter situation and A) only list the version of about_PSReadline that corresponds to the loaded module or B) if the module is not loaded, display…

    10 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 →
  17. 10 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    In Queue  ·  0 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  18. Bug: WMF 5 Production Preview on Windows Server 2012 breaks Sysprep

    Installing the WMF Production Preview on a Windows Server 2012 machine causes sysprep to fail with the following messages:

    2016-01-14 15:58:26, Error [0x0f00bf] SYSPRP CreateSysprepActionList: Invalid action node sysprepOrder found for component Microsoft-Windows-SoftwareInventoryLogging-ScheduledTasks
    2016-01-14 15:58:26, Error SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x10dd
    2016-01-14 15:58:26, Error SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0x10dd
    2016-01-14 15:58:26, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x10dd
    2016-01-14 15:58:26, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x800710dd
    2016-01-14 15:58:26, Info [0x0f004c] SYSPRP WaitThread:Exiting…

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

    We’ll send you updates on this idea

    2 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  19. Support op_addition on System.Object[]

    Votes from Connect: 4

    Original Date Submitted: 5/29/2015 12:55:07 AM

    Description:
    Contact Information
    Handle: Joel 'Jaykul' Bennett
    Site Name: PowerShell
    Feedback ID: 1377224


    Problem Description:
    PowerShell currently implements addition on arrays:

    $Array = 1,2,3
    $Array = $Array + 4
    $Array = $Array + 5,6,7
    $Array += 8
    $Array += 9,10

    I would like it to support subtraction, such that
    $array -= $object
    $array = $array - $object

    Both become alternate syntax for:
    $array = $array -ne $object

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

    Repro Steps:

    Internal BugId: 14522

    10 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 →
  20. nCurses-like Library for PowerShell

    Votes from Connect: 10

    Original Date Submitted: 5/22/2015 10:16:03 PM

    Description:
    Contact Information
    Handle: Trevor Sullivan [MVP]
    Site Name: PowerShell
    Feedback ID: 1356647


    Problem Description:
    Please include a text-GUI library, similar to nCurses, with PowerShell on Nano Server. This would enable the building of applications, such as text-based text editors.

    The framework should include support for building text-based windows, and keyboard shortcuts.

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

    Repro Steps:

    Internal BugId: 14507

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

Feedback and Knowledge Base