diff --git a/CHANGELOG.md b/CHANGELOG.md index af8b728f..9a9a3de9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Release History +## v2.5.0 + +> Release Date: Unreleased + +Enhancement: + +- Added a prerequisite check to `Invoke-VcfHealthReport` function to verify that the tar utility is present on Windows if using Windows PowerShell 5.1 (Desktop) or PowerShell 7 (Core). The `tar` utility is included with Windows Server 2019 and later and is noted as a system requirement in the documentation. [GH-191](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-reporting/pull/191) + ## v2.4.2 > Release Date: 2023-10-18 diff --git a/VMware.CloudFoundation.Reporting.psd1 b/VMware.CloudFoundation.Reporting.psd1 index d5a53c64..1395527e 100644 --- a/VMware.CloudFoundation.Reporting.psd1 +++ b/VMware.CloudFoundation.Reporting.psd1 @@ -3,7 +3,7 @@ # # Generated by: VMware, Inc. # -# Generated on: 2023-10-18 +# Generated on: 2023-11-16 # @{ @@ -12,7 +12,7 @@ RootModule = '.\VMware.CloudFoundation.Reporting.psm1' # Version number of this module. - ModuleVersion = '2.4.2.1000' + ModuleVersion = '2.5.0.1000' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/VMware.CloudFoundation.Reporting.psm1 b/VMware.CloudFoundation.Reporting.psm1 index dc123292..813c3c8d 100644 --- a/VMware.CloudFoundation.Reporting.psm1 +++ b/VMware.CloudFoundation.Reporting.psm1 @@ -250,6 +250,14 @@ Function Invoke-VcfHealthReport { Try { Clear-Host; Write-Host "" + + if ($PSVersionTable.PSEdition -eq "Desktop" -or $PSVersionTable.OS -like "Microsoft Windows*") { + $tarPath = (Get-Command tar -ErrorAction SilentlyContinue).Source + if (!($tarPath)) { + Write-Warning "The tar utility is required to run this cmdlet. Please check the module system requirements and try again." + return + } + } if (Test-VCFConnection -server $sddcManagerFqdn) { if (Test-VCFAuthentication -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass) {