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 v6.0.0-beta.7 xml save on Linux and MacOS X has an additional [] in DOCTYPE

    [xml]$XmlDoc = get-content 'Info.plist'

    $XmlDoc.Save('def.plist')

    The two lines above work correctly in PowerShell 5.1 on Windows 10 but incorrectly with PowerShell v6 on Linux and MacOSX.

    Notice the [] just before the end in DOCTYPE.

    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"[]>

    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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  2. Get-SCXAgent - Possible bug with PowerShell version in Visual Studio Code

    SCOM 2016 UR2
    Powershell 5.0
    Visual Studio Code 1.12.2

    Command: Get-SCXAgent

    Repro


    1. Open PowerShell Integrated Terminal

    2. Import-Module OperationsManager

    3. Get-SCXAgent

    Expected: List of cross platform agents

    Actual:

    C:\SCOMTesting\Testing> Get-SCXAgent

    Get-SCXAgent : This cmdlet requires PowerShell version 3.0 or greater.
    At line:1 char:1
    + Get-SCXAgent
    + ~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Write-Error], WriteErrorException
    
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-SCXAgent

    C:\SCOMTesting\Testing> $PSVersionTable.PSVersion

    Major Minor Build Revision


    5 1 14393 1198

    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 →
  3. StackOverflowException when passing [Microsoft.RemoteDesktopServices.Common.RDCBHADetails] objects to/from static methods

    I encountered a situation that constantly generates a StackOverflowException. I was trying to pass an object from a v5 static class method to the parameter of another static method in the same class.

    Method

    static [string] GetActiveManagementServer ([Microsoft.RemoteDesktopServices.Common.RDCBHADetails]$RDCBHADetails)
    
    {
    if ($RDCBHADetails -ne $null)
    {
    return $RDCBHADetails.ActiveManagementServer
    }
    else
    {
    return $null
    }
    }

    Method call where $RDCBHADetails is of Type Microsoft.RemoteDesktopServices.Common.RDCBHADetails

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

Feedback and Knowledge Base