Files
ImportExcel/TryEPPlus.ps1
Doug Finke c1cbb7ef62 Tweak
2015-04-13 10:22:25 -04:00

19 lines
474 B
PowerShell

$xlFile = ".\testExport.xlsx"
Remove-Item -ErrorAction Ignore $xlFile
$ExportOptions = @{
Path = $xlFile
Show = $true
IncludePivotTable = $true
IncludePivotChart = $true
PivotRows = echo Company Name
PivotData = "PM"
ChartType = "BarClustered3D"
#Password = "Test"
}
Get-Process |
Where Company |
Select Company, Name, Handles, PM |
Export-Excel @ExportOptions