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. verify yeah all that stuff

    2 years I cramed tech school im locksmith security is security

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  2. New-ScheduledTaskAction adds wrong characters to Arguments

    Forgive me if this has been posted previously but I cannot locate a ticket for it. When using New-ScheduledTaskAction in PowerShell, 5.1.19041.1, to create an action to call a PowerShell script there are incorrect characters being added to the arguments.

    For example, please consider the following script

    $action = New-ScheduledTaskAction -Execute "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" –Argument "-ExecutionPolicy Bypass -File `"C:\PathToScript\Script.ps1`""

    When added to a scheduled task this action will not execute, further inspection revealed that under ANSI encoding the final "is actually being sent over as the special aE symbol. And if you try to wrap everything in single quotes and concatenate…

    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 →
  3. Exceptions when filtering .etl trace files using New-PefTraceSession

    Scenario:
    We are filtering traces captured in *.etl files using the following Cmdlets: New-PefTraceSession, Add-PefMessageSource, and Start-PefTraceSession. After the filter we expect the filtered file to be saved as a .matu file. The traces themselves are captured using netevents sessions, logman and xperf. Most of these works fine but occassionally we run into the below error which causes that particular .etl trace file to not be analyzed/filtered.

    -----Exception-----System.ArgumentException: An item with the same key has already been added.
    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    at Microsoft.ProtocolTools.Runtime.Persistence.Project.AddMetadataSection(Nullable
    1 id, String name, String type, String description, String…

    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 →
  4. Failed to populate environments in settings

    EDIT: Our Win 2016 server was recently patched with KB4569746 (.NET Framework 4.8 cumulative). Could that be the cause?

    Hi, we're getting the following error when trying to connect to Power BI Service using PBI modules MicrosoftPowerBIMgmt:

    PS C:\Users\CONAMZ> Login-PowerBI
    Login-PowerBI : Failed to populate environments in settings
    At line:1 char:1
    + Login-PowerBI
    + ~~~~~~~~~~~~~

    + CategoryInfo          : WriteError: (Microsoft.Power...IServiceAccount:ConnectPowerBIServiceAccount) [Connect-PowerBIServiceAccount], Exception
    
    + FullyQualifiedErrorId : Failed to populate environments in settings,Microsoft.PowerBI.Commands.Profile.ConnectPowerBIServiceAccount

    We also tried connecting via Get-Credential and using registered App credentials. The Powershell script has been working for months.

    Here are the things we've tried but to no avail: …

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  5. i need powershell to support the sed command

    i need powershell to support the sed command

    5 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 →
  6. New Parameter on Format-List to exclude null/empty properties

    Format-List (and perhaps Format-Table) should have a parameter to exclude null/empty properties. This would allow finding relevant data more quickly.

    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 →
  7. Get-ADUser should be able to use UserPrincipalName for the Identity field

    Currently the Get-ADUser cmdlet does not support the usage of User Principal Names to identify user accounts. This is less than optimal when you need to correlate UPNs sourced from one data source, like an Intune-generated CSV, to the respective user accounts. It would be really nice to get that rather basic functionality added.

    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 →
  8. Bug: HTTP Content-Type of 'application/json' is not handled as UTF-8 by default

    Microsoft.PowerShell.Utility has Invoke-WebRequest cmdlet (and Invoke-RestMethod among potentially others) which allow JSON to be requested from a remote server.

    If the remote server provides a Content-Type header of 'application/json;charset=utf-8' then the WebResponseObject Content is properly parsed. However, if the Content-Type header only sets 'application/json' then ISO-8859-1 is assumed as the encoding by PowerShell 5.

    One can manually transform the response content such as:
    However such manual work is not helpful for Invoke-RestMethod cmdlet as the data has already been parsed into key-value mappings, and cannot be easily bulk-converted.

    RFC 8259 at https://tools.ietf.org/html/rfc8259#section-8.1 clearly says "JSON text exchanged between systems 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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  9. Module appears to install ok, but then cannot be found

    I am trying to use the Devops Feeds respository. I followed the article here
    https://docs.microsoft.com/en-us/azure/devops/artifacts/tutorials/private-powershell-library?view=azure-devops
    With a few fiddles I managed to get to the end. The find-module found the module and the install-module appears to work, but the module cannot be found and does not exist in "C:\Program Files\WindowsPowerShell\Modules" as expected
    I ran the install-module with verbose and attach the result
    Thanks for any help
    Adrian

    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. Get- cmdlets - sort properties descending for an object

    Output of the properties for Get- cmdlets (example Get-Mailbox user1 | fl * ) should be automatically sorted (descending). It would be much easier to search the output for a specific properties if they would be sorted - especially if object does have many properties like Get-User ... :)
    Counts for all powershell modules (Exchange, SharePoint, AD, *) of course

    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. EDB Recovery Software to Recover corrupt EDB File

    EdbMails Exchange recovery will analyze the Exchange EDB file corruption issues and recover data from inaccessible Exchange EDB file. It's the best software for recovering and converting EDB file to PST File. EdbMails can recover damaged, corrupted Exchange mailboxes, deleted folders / items within mailboxes.

    Advantages and Key Features of EDB Recovery Software

    -Recovers corrupted, damaged,  Dismounted & Offline Exchange EDB files
    
    -Repairs Large size EDB files (> 10 TB file size) and convert it to PST files.
    -Allows recovery of EDB file and also export with saving recovered mails in PST, MHT, EMLformat
    -Restores EDB Mailbox items like emails,
    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 →
  12. NetNat behavior has changed between Windows Server 2012 R2 and Windows Server 2019

    Windows Server 2019 and Powershell 5.1 have broken the -ExternalIPInterfaceAddressPrefix parameter in the New-NetNat cmdlet. In 2012 R2, you specify the external networks on your server using this parameter and specifying the Network and CIDR mask (10.95.1.0/24). In 2019 and Powershell 5.1, this parameter is broken and you receive an error saying "The parameter is incorrect" invariably. The only way to create a NAT configuration in 2019 is to use the new InternalIPInterfaceAddressPrefix parameter, but this seems to prevent you from creating new External Addresses. Whenever I create a NAT in Server 2019 using the InternalIPInterfaceAddressPrefix parameter, I am unable…

    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 →
  13. Windows PowerShell 5.1 hangs displaying result from Invoke-WebRequest

    Entering this reproducibly hangs Windows PowerShell 5.1:

    $r = iwr 'https://marketplace.visualstudio.com/items?itemName=austin.code-gnu-global'
    $r

    Here's what one gets with Set-PSDebug -Trace 2:

    > $r
    DEBUG: 94+ >>>> {
    DEBUG: ! CALL function '<ScriptBlock><DynamicParam>'
    DEBUG: 97+ >>>> $getCommand = $executionContext.InvokeCommand.GetCmdlet(
    DEBUG: ! SET $getCommand = 'Get-Command'.
    DEBUG: 99+ >>>> $foreachObject = $executionContext.InvokeCommand.GetCmdlet(
    DEBUG: ! SET $foreachObject = 'ForEach-Object'.
    DEBUG: 101+ >>>> $whereObject = $executionContext.InvokeCommand.GetCmdlet(
    DEBUG: ! SET $whereObject = 'Where-Object'.
    DEBUG: 107+ >>>> $command = & $getCommand Out-Default -Type Cmdlet
    DEBUG: ! SET $command = 'Out-Default'.
    DEBUG: 108+ >>>> $targetParameters = @{}
    DEBUG: ! SET $targetParameters = 'System.Collections.Hashtable'.
    DEBUG: 109+ >>>>…

    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 →
  14. Explorer 'Pinned Items' on the taskbar opening in PowerShell 7 rather than explorer

    I have pinned folders to my task bar under Explorer.exe. Since installing PowerShell 7 these links open in PowerShell rather than explorer.

    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 →
  15. Get-Disk is broken under batch logon

    Cmdlet Get-Disk fails under batch logon.


    1. Create a scheduled task to run powershell -Command &quot;Get-Disk | Write-Output &gt; &#39;c:\users\&lt;username&gt;\yo.txt&#39;&quot;. Check the box to enable running when the user is not logged in. (You’ll need the Local Security Policy priv allowing batch logon for your user.)


    2. Run the scheduled task directly from Scheduled Tasks. Open output file, observe success.


    3. Delete output file, run the scheduled task on a trigger. Open output file, observe failure.


    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. AzureAD - Cannot properly read System.Byte[] value even when loading the module using "-UseWindowsPowerShell".

    AzureAD - Cannot properly read System.Byte[] value even when loading the module using "-UseWindowsPowerShell".

    Whenever I troubleshoot Conditional Access issues, I use to retrieve the certificate hash of AzureADDevice. Long story short, I retrieve "AlternativeSecurityIds.Key" property of AzureADDevice.

    Get-AzureADDevice -SearchString XXXX| fl displayname,deviceid,objectid,@{n='DevCerHash';e={ [System.Text.Encoding]::Unicode.GetString($_.AlternativeSecurityIds.key).substring(21,40) }}

    I know that PS7 isn't compatible with AzureAD module, and for this reason I use "-UseWindowsPowerShell" flag to load the module. Unfortunately, in PS5 the byte array is properly read, while in PS7 (-UseWindowsPowerShell) an object of wrong type is returned.

    Get-AzureADDevice -SearchString XXXX| select AlternativeSecurityIds |gm

    The above command returns "TypeName: Selected.Microsoft.Open.AzureAD.Model.Device" in PS5…

    5 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 →
  17. Add support for LiteralPath to Get-DfsrFileHash cmdlet

    The Get-DfsrFileHash cmdlet would be a lot more versatile if it included support for the LiteralPath argument as other cmdlets like Get-FileHash and Get-ChildItem do. Without support for the argument the cmdlet currently generates an error when file paths containing special characters (such as []) are passed via the pipeline into the cmdlet. This makes obtaining DFS-R file hashes for files in bulk very difficult.

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

    We’ll send you updates on this idea

    1 comment  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  19. Suggestion: Rich PowerShell help / documentation

    Here are the facts:


    1. PowerShell documentation and help pages are produced in Markdown on GitHub

    2. They are converted to plain text before being delivered to the end-user. They don't look good.

    3. PowerShell is fully capable of displaying Markdown, via the Show-Markdown cmdlet.

    So, I suggest that PowerShell help and documentation pages should be delivered to the end-user in untouched Markdown format. Even without a terminal app that renders VT100 code, Markdown looks VERY good.

    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 →
  20. Need Teams PS cmdlet to create bulk or multiple teams

    Current New-team does not work as expected in for each loop ps script. need new bulk create cmdlet

    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 →
← Previous 1 3 4 5 89 90
  • Don't see your idea?

Feedback and Knowledge Base