From f0af96bf7bfe97fbeec78e41de26bbee22e5e5d9 Mon Sep 17 00:00:00 2001 From: David Paulson Date: Wed, 20 Nov 2024 10:56:28 -0600 Subject: [PATCH] Add physical disk to collection --- .../RemoteScriptBlock/IO/Save-ServerInfoData.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Diagnostics/ExchangeLogCollector/RemoteScriptBlock/IO/Save-ServerInfoData.ps1 b/Diagnostics/ExchangeLogCollector/RemoteScriptBlock/IO/Save-ServerInfoData.ps1 index 391d7cf7ff..ae14ec5003 100644 --- a/Diagnostics/ExchangeLogCollector/RemoteScriptBlock/IO/Save-ServerInfoData.ps1 +++ b/Diagnostics/ExchangeLogCollector/RemoteScriptBlock/IO/Save-ServerInfoData.ps1 @@ -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") }