mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-03 00:53:15 +00:00
Merged two Join Worksheet sample directories
This commit is contained in:
11
Examples/JoinWorksheet/Join-worksheet-blocks.sample.ps1
Normal file
11
Examples/JoinWorksheet/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