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. TPM

    TPM isn’t the only workable option for disk encryption and in fact, is almost guaranteed to provide the user with a false sense of security.

    Sure, some encryption is better than none, but considering the fact that Microsoft has broken the trust it had with it's customers, when they were caught red-handed with their hands in the cookie jar, as well as their brazen Win10 campaign tactics that literally upended several businesses and that of the lives of so many other end users who woke up one morning to find all their files were gone because their computers were automatically

    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 →
  2. The Set-DNSServerResourceRecord command will not change the "PrimaryServer" field even though it looks like all commands execute just fine.

    The Set-DNSServerResourceRecord command will not change the "PrimaryServer" field even though it looks like all commands execute just fine.

    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 →
  3. font color is too dark... anyway to change it?

    I love to use Powershell. But some of its default color is too dark so that I cannot read them. I submitted comparison screenshot with CMD.

    The posted screenshot is, as you see, 'ls' command from a remote server logined by CMD and Powershell each. You may see that right one's 'ls' output is too dark. I changed background but it was same cause it's the problem of font color itself not the background color or font size.

    Some of internet post guided to change bash setting to change output color of 'ls', but that is just temporary fix only…

    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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  4. mumudahkan perbaikan pada komputer

    karena langsung runing sendiri dan langsung jadi

    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 →
  5. saya sangat terbantu dengan adanya halaman ini

    ini sangat praktis dan mudan untuk dimengerti TY

    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 →
  6. In the release version 7.0 the 'update-help' and 'update-help -UICulture en-US' hit an 404 with Powershell running as admi in Administration

    In the release version 7.0 the 'update-help' and 'update-help -UICulture en-US' hit an 404 with Powershell running as Administrator.

    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. ValidateScript does not work for class properties

    ValidateScript does not work for class properties. All other validating seem to work.

    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 →
  8. DISM creates corrupt archive

    If two (or more) files are present with the exact same content, where file extension is irrelevant also content of file, as long as its the exactly the same; Dism will create a corrupted archive

    e.g.

    a.txt & b.txt

    Content of both files: 0x6c

    Shouldn't this be a case for the dedublication? Both files are separeted inside the wim (Both have only 1 link)

    https://sourceforge.net/p/sevenzip/discussion/45798/thread/db110477b8/

    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 →
  9. Suggestion: Getting the size of Network Shares with Hard-Quotas factored in

    When you map a network drive to your computer and look at the available storage, the GUI shows you the storage available as set by any hard-quotas configured in File Server Resource Manager. However, when you run any sort of PowerShell script to query the drive, you get the result of the drive without any quota in place.

    It'd be great to have a query which shows the storage available and used with the quota factored in.

    As an example, I just had to write a script which emails me our share sizes once a day but instead of simply…

    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. Bug: Format-Hex Does not display single zero byte

    Format-Hex does not display output with a source of a single zero byte or byte array with a single zero byte:

    Repro:

    [byte]$byte = 0
    $byte | Format-Hex # no value displayed
    [byte[]]$bytes = 0
    $bytes | Format-Hex # no value displayed

    [byte]$byte = 1
    $byte | Format-Hex # correct 01 value displayed
    [byte[]]$bytes = 1
    $bytes | Format-Hex # correct 01 value displayed

    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 →
  11. "using module" does not provide a way to disable name checking

    The Import-Module cmdlet provides a way to silence the warning about unapproved verbs in function/cmdlet names (-DisableNameChecking). There does not seem to be a way to do this via the "using module" statement, which generates unwanted noise (we have our own internal naming conventions).

    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 Engine  ·  Flag idea as inappropriate…  ·  Admin →
  12. test-modulemanifest RequiredAssemblies fails if dll is fully qualified

    Test-ModuleManifest, Update-ModuleManifest & Publish-ModuleManifest all fail if RequiredAssemblies contains the full string. This is because they all rely on Test-ModuleManifest which does not handle the fully qualified form of the assembly name.

    for example UIAutomationClient will work

    however the following will fail:
    "UIAutomationClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

    On a related topic, after editing the manifest i had to close & re-open powershell. even an import-module -Force did not allow it to see the updated module information.

            Import-Module $module.Name -Force
    
    write-host "Updated copyright for $($module.Name) old value: $($module.Copyright)"
    Update-ModuleManifest -Path $module.Path -Copyright "(c) $([datetime]::Now.Year). All rights reserved." -ErrorAction Stop

    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  ·  Package Management  ·  Flag idea as inappropriate…  ·  Admin →
  13. Test-ModuleManifest returns incorrect Tags when run multiple times

    If you run the Test-ModuleManifest cmdlet more than once against the same manifest the "Tags" property returns different results each time.

    For example, I have a module that contains the following tags in the psd1 file:

    Tags = "tag1","tag2"

    You can see below that if run the Test-ModuleManifest more than once it returns more copies of the tags each time it's executed:

    $m = Test-ModuleManifest .\tagtest.psd1
    $m.tags
    tag1
    tag2
    tag1
    tag2

    $m = Test-ModuleManifest .\tagtest.psd1
    $m.tags
    tag1
    tag2
    tag1
    tag2
    tag1
    tag2

    $m = Test-ModuleManifest .\tagtest.psd1
    $m.tags
    tag1
    tag2
    tag1
    tag2
    tag1
    tag2
    tag1
    tag2

    $m = $null
    $m =…

    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. Connect-MicrosoftTeams from Microsoft Teams PowerShell does not work on Azure Automation

    I am attempting to connect to Microsoft Teams using Azure Automation. I am using the following code in Azure Automation PowerShell Runbook.

    ```

    Get the credential from Automation

    $credential = Get-AutomationPSCredential -Name 'O365'

    $userName = $credential.UserName

    $securePassword = $credential.Password

    $psCredential = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $userName, $securePassword

    Connect to Microsoft Teams

    Connect-MicrosoftTeams -Credential $psCredential
    ```

    I receive the following error:

    ```
    Connect-MicrosoftTeams : One or more errors occurred.: Object reference not set to an instance of an object.
    At line:9 char:1
    + Connect-MicrosoftTeams -Credential $psCredential
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : AuthenticationError: (:) [Connect-MicrosoftTeams], AadAuthenticationFailedException
    
    + FullyQualifiedErrorId : Connect-MicrosoftTeams,Microsoft.Open.Teams.CommonLibrary.ConnectMicrosoftTeams

    Connect-MicrosoftTeams :…

    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. Doesn't work as described. Does not find the names listed by get-netadapter

    Doesn't work. Cantt find the name of the adapter or teh description.

    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 →
  16. Windows clusters - Pipline doens't work in version 7 but works in 5.1

    Simple script to find cluster Listener fails to accept pipeline in version 7. Works fine in version 5.1

    $CurCluster = Get-Cluster -Name $ClusterName #Sets the Current Cluster to the clustername

    $Listener = ($CurCluster | Get-ClusterResource | Where-Object { $.ResourceType -eq 'Network Name' -and $.OwnerGroup -ne 'Cluster Group' }).Name #Gets the Listener Name if configured - if not conifugred then this will exit

    Running this code in PS 7 generates this error:

    Get-ClusterResource: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its…

    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 →
  17. powershell display at boot up

    The following window displays when I start up my notebook computer: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe. How do I prevent that?

    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-NetFirewallRule does not show ports or IPs

    There is no obvious way to dump the CURRENT rule used by the firewall that includes the port(s) and IP(s) assigned to 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 →
  19. Disable or Restrict Powershell -EncodedCommand

    Powershell is targeted more often as a vector for breaching computer systems. Script signing prevents malicious use of scripted payloads, but an encoded command allows for complex command sequences to be executed in an obfuscated manner, outside of behavior based detection mechanism. Security Groups are calling for disabling of Powershell altogether because there are not security controls to lock down specific features. Disabling Encodedcommand for standard users would at least be a start to breaking the methodologies of those seeking to breach security by leveraging command and control utilities.

    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. get-hotfix

    Get-Hotfix doesn't display all installed hotfixes on a computer (verified in Server 2012r2, Server 2016, Server 2019 and Windows 10 v1909).

    It feels like (unverified) that it is pulling this info from WMI, because similar wmi queries also miss the same updates (wmic qfe list).

    I've found that running this code, actually gives the list of all installed updates:

    $Session = New-Object -ComObject "Microsoft.Update.Session"
    $Searcher = $Session.CreateUpdateSearcher()
    $Searcher.QueryHistory(0, $Searcher.GetTotalHistoryCount())

    Request Get-Hotfix be updated to pull in this missing info and output it in a friendly way much like it does already.

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

Feedback and Knowledge Base