Files
ImportExcel/TryEPPlus.ps1
2015-04-13 09:41:04 -04:00

17 lines
347 B
PowerShell

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