Skip to content

Commit

Permalink
Add physical disk to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulson45 committed Nov 20, 2024
1 parent 50a8dff commit f0af96b
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 f0af96b

Please sign in to comment.