Skip to content

Commit

Permalink
Merge pull request #2225 from microsoft/dpaul-ElcDev2
Browse files Browse the repository at this point in the history
Add physical disk to collection
  • Loading branch information
dpaulson45 authored Nov 20, 2024
2 parents dcd549a + 53da047 commit f0794a7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ function Save-ServerInfoData {
Write-Verbose("Get-Partition isn't a valid command")
}

if (Test-CommandExists -command "Get-PhysicalDisk") {
Save-DataInfoToFile -DataIn (Get-PhysicalDisk) -SaveToLocation ("{0}\PhysicalDisk" -f $copyTo)
} else {
Write-Verbose("Get-PhysicalDisk isn't a valid command")
}

Invoke-ZipFolder -Folder $copyTo
Write-Verbose("Function Exit: Save-ServerInfoData")
}

0 comments on commit f0794a7

Please sign in to comment.