mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
15 lines
400 B
PowerShell
15 lines
400 B
PowerShell
Import-Module ..\..\ImportExcel.psd1 -Force
|
|
|
|
Remove-Item .\test1.xlsx -ErrorAction Ignore
|
|
|
|
$ExcelParams = @{
|
|
Path = ".\test1.xlsx"
|
|
IncludePivotTable = $true
|
|
PivotRows = 'Company'
|
|
PivotTableName = 'MyTable'
|
|
PivotData = @{'Handles' = 'sum'}
|
|
Show = $true
|
|
}
|
|
|
|
Get-Process | Select-Object Company, Handles |
|
|
Export-Excel @ExcelParams |