Daybreak Faction - Puzzle 5

This topic contains 0 replies, has 1 voice, and was last updated by  Brandon Olin 1 week ago.

  • Author
    Posts
  • #93598

    Brandon Olin
    Participant

    Here is my solution to puzzle 5.

    I opted to NOT include support for exporting to HTML or CSV inside the function. That capability is already in PowerShell and I don't think we should reinvent the wheel.

    $perf = Get-PerformanceCounter
    # Export to HTML
    $perf | ConvertTo-Html | Out-File -FilePath ./perf.html
    # Export to CSV
    $perf | ConvertTo-Csv -Path ./perf.csv
    

You must be logged in to reply to this topic.