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. Brackets Treated As Special Characters In Single Quotes

    Steps to reproduce

    In File Explorer on an NTFS volume, create the file: [abc].txt

    Following this run:

    PS> ls '[abc].txt'

    Expected behavior

    Directory: C:\Users\Dave
    

    Mode LastWriteTime Length Name


    -a---- 2019-05-06 12:07 AM 0 [abc].txt

    Actual behavior

    No output displayed.

    Environment data

    Name Value


    PSVersion 5.1.17763.316
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.17763.316
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    Additional Cases and Information

    The file name can be displayed using tab completion, but the brackets are preceded by back ticks, which indicates that Windows can see the file and assumes that the brackets are special characters. When…

    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 →
  2. powershell ISE crashes when module manifest nested module is itself

    If you define a module manifest where the nested modules has the current module, ISE terminates.

    Here is an example manifest:
    @{
    RootModule = 'Acme.MyApp.Install.psm1'
    ModuleVersion = '1.0'
    GUID = 'c2419ceb-c2ef-4d2c-bb1d-6ec6de24ab86'
    Author = 'Justin Marshall'
    CompanyName = 'Acme'
    RequiredModules = @('Acme.Common.Misc', 'Acme.Common.WinForms', 'Acme.MyApp.Admin', 'Acme.Common.XMLXSL')
    NestedModules = @('Acme.MyApp.Install')
    FunctionsToExport = ''
    CmdletsToExport = '
    '
    VariablesToExport = ''
    AliasesToExport = '
    '
    FileList = @('Acme.MyApp.Install.psm1')

    }

    this same module loads fine in powershell console.

    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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  3. Documentation for Get-ScheduledTask does NOT indicate which versions of windows it applies to as EVERY component should.

    Documentation for Get-ScheduledTask does NOT indicate which versions of windows it applies to as EVERY component should.

    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 →
  4. Documentation for Get-ScheduledTask does NOT indicate which versions of windows it applies to as EVERY component should.

    Documentation for Get-ScheduledTask does NOT indicate which versions of windows it applies to as EVERY component should.

    0 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 →
  5. 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 →
  6. Remotely invoking Get-Item on a registry path displays values from the local machine instead

    Invoke-Command -ComputerName "ComputerB" -Credential $cred -ScriptBlock{Get-Item "HKLM:\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName"}

    Hive: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName
    

    Name Property PSComputerName


    ActiveComputerName ComputerName : ComputerA ComputerB

    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 →
  7. Pressing spacebar while holding shift should still insert a space

    Pressing spacebar while holding shift should still insert a space.

    When I am typing into the PowerShell prompt, if I happen to be holding down the shift key when I hit the spacebar, nothing happens. I would like for a space to be inserted when I hit the spacebar, regardless of whether I am holding the shift key or not. (The classic Command Prompt does this correctly.)

    For reference, I'm using Win10 1809 and:

    PS C:> $PSVersionTable

    Name Value


    PSVersion 5.1.17763.316
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.17763.316
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    3 votes
    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 →
  8. New-Object : Cannot find type [System.Windows.Forms.OpenFileDialog]: verify that the assembly containing this type is loaded

    From within PS ISE v5.1, this works
    $filetofetch = New-Object System.Windows.Forms.OpenFileDialog
    $filetofetch.InitialDirectory = "c:\users" + $env:USERNAME
    $filetofetch.Filter = 'XML|*.xml'
    $null = $filetofetch.ShowDialog()

    return $filetofetch.FileName

    From within Visual Studio Code, I'm getting an assembly error
    New-Object : Cannot find type [System.Windows.Forms.OpenFileDialog]: verify that the assembly containing this type is loaded.

    Not sure what assembly I need to ensure is loaded

    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 →
  9. Test-ADServiceAccount -Identity MSA1 returns "WARNING: Test failed for Managed Service Account MSA. If standalone Managed Service Account, t

    Dear Friends,
    I am running all commands in windows powershell as an administrator.

    I am trying to configure gMSA on win 2016 server. I am able to run the below command to create the gMSA.

    New-ADServiceAccount -Name "rassonline" -ServicePrincipalNames "host/rassonline", "host/rassonline.omnitel.it" -PrincipalsAllowedToRetrieveManagedPassword "rassonlineHosts" -DnsHostName "rassonline.omnitel.it"

    After this I am running

    "Test-ADServiceAccount -Identity rassonline"

    Getting the below warning as the result of execution of above command.

    "WARNING: Test failed for Managed Service Account MSA. If standalone Managed Service Account, the account is linked to another computer object in the Active Directory. If group Managed Service Account, either this computer does 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 →
  10. PowerShell tabs

    Having the ability to open new PowerShell windows in tabs would be very useful.

    3 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 →
  11. Ability to register a wrapper function to be called before a cmdlet is being executed

    Helpful for example to check if remote sessions are still healthy and re-open them in case they are broken.

    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 →
  12. Serious MASSIVE BUG: Mount-DiskImage not scriptable

    Hi

    Mounting a ISO image is happening via Mount-DiskImage -ImagePath C:\ISO\isofile.iso -PassThru. This is working.

    BUT: the -ImagePath parameter doesn´t accept any(!) variables. This makes it absolute and total unusable in a script because usually the Path to a iso isn´t always static.

    If I have an static Path i can use the explorer. Its faster and easier.
    Dissapointing

    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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  13. Convertto-JSON should be able to filter out empty properties of source object (to send to APIs)

    REST APIs (e.g. those from Business Central) may require a property of an object to be set when it is included in the JSON message. The API errors out when an unused property is present in the JSON object, even if it is not strictly required for the business logic you are implementing.

    When you build objects using PowerShell classes you tend to design the class so that all possible properties are defined in it. But they may not be used in each JSON/API message. Currently you have to filter these properties out before converting to JSON using ConvertTo-JSON. It…

    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 →
  14. intellisense for powershell windows

    i like to have intellisense, it means on powershell windows not ise

    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 →
  15. Possible bug in DNS Module Get-DnsServerResourceRecord properties

    when I do:
    > Get-DnsServerResourceRecord -RRType Ptr -ZoneName 0.168.192.in-addr.arpa -ComputerName mydc1
    I get the following properties and corresponding data (output):
    HostName RecordType Timestamp TimeToLive RecordData


    14 PTR 4/6/2019 1:00:00 PM 00:20:00 someserver.contoso.com.

    but when I pipe to select-object in order to filter only certain properties, I am not getting the output that I expect which should correlate to the above output, for example:
    > Get-DnsServerResourceRecord -RRType Ptr -ZoneName 0.168.192.in-addr.arpa -ComputerName mydc1 | select -Property RecordData
    the output I see is:
    DnsServerResourceRecordPtr

    I just want a list of FQDN's..

    thank you,
    -Abbas

    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 →
  16. Query path language to query nested hash tables

    Expected:
    Directly use query path language to query nested hash tables

    Current:
    1. Convert the hash table into json
    2. Load json by Newtonsoft.Json
    3. use Json query language to query

    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 →
  17. Add "-ComputerName" parameter to web administration and management cmdlets

    Please add the -ComputerName parameter to cmdlets such as Get-Service, Stop-Service, Get-ComputerInfo, Stop-WebAppPool, Start-WebAppPool, Stop-WebAppPool, Start-WebAppPool, Get-WebAppPoolState, etc... Running Invoke-Command with many arguments gets tedious at times and can be inefficient. Ideal, this should be standard in all cmdlets if possible.

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  18. >> defaults to unicode no matter what the encoding of the original file is

    echo 'hi there' >> file.txt

    Even if file.txt is ansi encoding, this will append a line of unicode or utf-16 little endian text to the bottom of the file. I assume >> is an alias for "out-file -append".

    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 →
  19. test-dtc doesn't work on Windows 10 nor Windows Server 2016

    The test-dtc command tries to find some firewall rules that isn't present in either Windows 10 or Windows Server 2016 and will not complete it's testing because of this.

    In addition, it shouldn't test for firewall rules if firewall is disabled, since the firewall rules doesn't have any impact.

    The following firewall rules fails that they are disabled (but they don't exists):
    - RPC Endpoint Mapper
    - DTC incoming connections
    - DTC outgoing connections

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  20. Bug : Recaptcha in Contact Support

    I'm getting the following error message :

    Recaptcha response was not valid. Try again or email support if you need assistance.

    after submitting a new message on the Contact Support page. I confirm that all required fields were filled-in, cookies are not disabled; I've tried with Edge, Firefox, Chrome and IE, always the same result.

    Txs in advance for your help.

    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  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base