2011. 1. 29. 15:28
Brain Trainning/PowerShell
출처 : http://app.en25.com/e/es.aspx?s=1403&e=18387&elq=098307d1954b4987a974a247140f9022
PowerTip of the Day, from PowerShell.com: |
Create HTML report in styleAlso, here is a template that shows you how to change to a nicer font if you want to export PowerShell results as HTML report. It will generate a process list and display it in a simple window: $head = @'<style> body { font-family:Consolas } </style> <title>Process List</title> '@ $path = "$env:temp\report.hta" Get-Process | Select-Object Name, Company, ID, HandleCount, CPU | ConvertTo-Html -Head &head -PreContent '<H1>Process List</H1>' | Out-File $path Invoke-Item $path |
댓글을 달아 주세요