This commit is contained in:
dfinke
2017-10-12 10:55:18 -04:00
parent f5acf88a17
commit 1004d8a9ea

View File

@@ -1,4 +1,6 @@
ipmo .\ImportExcel.psd1 -Force "To ship, is to choose"
ipmo .\ImportExcel.psd1 -Force
$file = "c:\temp\testPT.xlsx" $file = "c:\temp\testPT.xlsx"
rm $file -ErrorAction Ignore rm $file -ErrorAction Ignore
@@ -18,5 +20,6 @@ $pt.PT2=@{
} }
$data = gsv | select status, Name, displayName, starttype Get-Service |
$data | Export-Excel -Path $file -Show -PivotTable $pt -AutoSize select status, Name, displayName, starttype |
Export-Excel -Path $file -Show -PivotTable $pt -AutoSize