mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-26 21:23:19 +00:00
Fix to parameter set detection in Export-Excel
Parameter set problem was causing append to demand a table name. Tweaked eample in join worksheet, added another join worksheet sample
This commit is contained in:
11
Examples/Join-Worksheet/Join-worksheet-blocks.sample.ps1
Normal file
11
Examples/Join-Worksheet/Join-worksheet-blocks.sample.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
$path = "$env:TEMP\Test.xlsx"
|
||||
Remove-item -Path $path -ErrorAction SilentlyContinue
|
||||
Get-WmiObject -Class win32_logicaldisk |
|
||||
Select-Object -Property DeviceId,VolumeName, Size,Freespace |
|
||||
Export-Excel -Path $path -WorkSheetname Volumes -NumberFormat "0,000"
|
||||
Get-NetAdapter |
|
||||
Select-Object -Property Name,InterfaceDescription,MacAddress,LinkSpeed |
|
||||
Export-Excel -Path $path -WorkSheetname NetAdapters
|
||||
|
||||
Join-Worksheet -Path $path -HideSource -WorkSheetName Summary -NoHeader -LabelBlocks -AutoSize -Title "Summary" -TitleBold -TitleSize 22 -show
|
||||
Reference in New Issue
Block a user