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. 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 →
  2. 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 →
  3. 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 →
  4. 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 →
  5. 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 →
  6. More Network Layer Troubleshooting Tools in Test-NetConnections

    Two things that a Network Engineer needs to troubleshoot issue at Network layer are MTR (multitraceroute) and TCP/UDP traceroute. Both are either missing or available with minimum options in Test-NetConnections

    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. install module

    hi

    i am unable to install the module..when i do so i get this error emssage

    The term 'install-module' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
    again.
    At line:1 char:1
    + install-module *
    + ~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (install-module:String) [], CommandNotFoundException
    
    + FullyQualifiedErrorId : CommandNotFoundException

    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 →
  8. Test-FileCatalog failes when paths contain '

    <!--

    For Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:
    Windows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)

    This repository is ONLY for PowerShell Core 6 and PowerShell 7+ issues.

    -->

    Steps to reproduce

    ```powershell
    $CheckArray =
    "C:\path\to\Folder",
    "C:\path\to\Folder2"

    $ConfirmArray =
    "D:\path\to\Folder",
    "D:\path\to\Folder2"

    New-FileCatalog -Path $CheckArray FileCat.cat -CatalogVersion 2.0
    Test-FileCatalog -CatalogFilePath FileCat.cat -Path $ConfirmArray
    ```

    Expected behavior

    none
    windows acceptable filenames should work

    Actual behavior

    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. Set-NetIPAddress

    Set-NetIPAddress is not Working. When I want to set IP address using Set-NetIPAddress, a error appear:
    Set-NetIPAddress : CIM 服务器上的 ROOT/StandardCimv2/MSFTNetIPAddress 类实例的 CIM 查询: SELECT * FROM MSFTNetIPAddress WHERE ((IPAddress LIKE '192.168.43.161')) AND ((InterfaceIndex = 15))
    AND ((AddressFamily = 2)) 找不到任何匹配的 MSFT_NetIPAddress 对象。请验证查询参数,然后重试。
    It regard the Ip address as filter, I don't know why.

    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. Set-NetIPAddress

    Set-NetIPAddress is not Working. When I want to set IP address using Set-NetIPAddress, a error appear:
    Set-NetIPAddress : CIM 服务器上的 ROOT/StandardCimv2/MSFTNetIPAddress 类实例的 CIM 查询: SELECT * FROM MSFTNetIPAddress WHERE ((IPAddress LIKE '192.168.43.161')) AND ((InterfaceIndex = 15))
    AND ((AddressFamily = 2)) 找不到任何匹配的 MSFT_NetIPAddress 对象。请验证查询参数,然后重试。
    It regard the Ip address as filter, I don't know why.

    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 →
  11. Set-NetIPAddress

    Set-NetIPAddress is not Working. When I want to set IP address using Set-NetIPAddress, a error appear:
    Set-NetIPAddress : CIM 服务器上的 ROOT/StandardCimv2/MSFTNetIPAddress 类实例的 CIM 查询: SELECT * FROM MSFTNetIPAddress WHERE ((IPAddress LIKE '192.168.43.161')) AND ((InterfaceIndex = 15))
    AND ((AddressFamily = 2)) 找不到任何匹配的 MSFT_NetIPAddress 对象。请验证查询参数,然后重试。
    It regard the Ip address as filter, I don't know why.

    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 →
  12. Move *-VHD cmdlets from Hyper-V module to Storage module

    This would enable managing and working with VHDs without having to install the Hyper-V cmdlets.

    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 →
  13. How do I create an Azure Automation schedule with PowerShell using the Az Cmdlet New-AzAutomationSchedule?

    When I attempt to run the Cmdlet below with the following parameters, it fails:

    $AutomationAccountName = "CZEU1-INF-NP-0faa84be-AAA-01"

    $ResourceGroupName = "czeu2-app-np-rgp-01"

    $vmStartTime = (Get-Date "08:00:00").AddDays(1)

    $vmStopTime = (Get-Date "18:00:00")

    $timeZone = [TimeZoneInfo]::Local.DisplayName

    $vmStartupScheduleName = "Startup VMs 08:00 Daily Weekdays:

    $timeZone"

    $vmShutdownScheduleName = "Shutdown VMs 18:00 Daily

    Weekdays: $timeZone"

    [System.DayOfWeek[]]$WeekDays = @([System.DayOfWeek]::Monday..[System.DayOfWeek]::Friday)

    New-AzAutomationSchedule -AutomationAccountName $AutomationAccountName -Name $vmStartupScheduleName -StartTime $vmStartTime -WeekInterval 1 -DaysOfWeek $WeekDays -ResourceGroupName $ResourceGroupName -Verbose

    The error is: New-AzAutomationSchedule : Exception of type 'Microsoft.Azure.Management.Automation.Models.ErrorResponseException' was thrown. At line:1 char:1 + New-AutomationSchedule -AutomationAccountName $AutomationAccountNam... + CategoryInfo : CloseError: (:) [New-AzAutomationSchedule], ErrorResponseException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.NewAzureAutomationShedule

    21 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 →
  14. set-volume whatif

    Set-Volume along with a number of other commands in the storage module offer, but do not honor, the -WhatIf switch parameter.

    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 →
  15. Active Directory

    CrazyMarioBros

    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 →
  16. Not an idea, but a question

    I need to gather info for our auditors. I need a list of ALL Active Directory users with certain properties, but those requiring a false or true output are the ones that came out wrong for me. Objects like samaccountname came out just fine, but filters like isPreauthNotRequired gave me a weird and long output: Microsoft.ActiveDirectory.Management.ADPropertyValueCollection

    Here is my command:
    Get-ADUser -Filter * -Properties * | Select-Object samaccountname, isPreAuthNotRequired, isActive, isPwdEncryptedTextAllowed, displayname, isPwdNotRequired, userprincipalname, isDisabled, isExpired, distinguishedname | export-csv -path c:\export\allusers.csv

    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 should produce a CSV file that Excel can import.

    Find-Module -Repository PSGallery |

    Export-Csv -Path .\psgallery-modules.csv -Delimiter &#39;,&#39; -NoTypeInformation
    

    Microsoft Excel cannot import the result successfully. In particular, cells which contain multiple lines become new rows in the spreadsheet.

    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. native VPN IKEv2 client does not support server Redirect

    IKE Redirection is how VPNs provide load balancing.
    iPhone and MacOS support this natively.

    https://tools.ietf.org/html/rfc5685

    Please add!

    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 →
  19. 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

    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  20. get-aduser title

    I cant pull users Job title with AD-User command.

    -Properties * lists the title as an attribute but its returned empty even though all users have a job title assigned.

    Suspect this is a bug?

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

Feedback and Knowledge Base