From 807bae004c2c4ad2ca5f402b749d9982933bd9b0 Mon Sep 17 00:00:00 2001 From: Bailey McQuary Date: Thu, 12 Sep 2024 16:00:43 -0500 Subject: [PATCH] Fix for module not installing when zip already present in ProgramData --- lenovo-device-health/Log Analytics/Get-LenovoDeviceStatus.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo-device-health/Log Analytics/Get-LenovoDeviceStatus.ps1 b/lenovo-device-health/Log Analytics/Get-LenovoDeviceStatus.ps1 index ee08fe2..f045544 100644 --- a/lenovo-device-health/Log Analytics/Get-LenovoDeviceStatus.ps1 +++ b/lenovo-device-health/Log Analytics/Get-LenovoDeviceStatus.ps1 @@ -121,6 +121,7 @@ else else { Write-Output "LDMM ZIP file already exists. Skipping download." + Expand-Archive -Path (Join-Path -Path $ModuleTemp -ChildPath ldmm_1.0.0.zip) -DestinationPath $ModulePath -Force } # Check if the module was imported successfully