From e5325088f58213cc3da522c42599aa22a6d0c475 Mon Sep 17 00:00:00 2001 From: dyoder Date: Thu, 23 Sep 2021 14:27:06 -0400 Subject: [PATCH] don't update just force the install --- Tools.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Tools.ps1 b/Tools.ps1 index a6534e6..05d3f06 100644 --- a/Tools.ps1 +++ b/Tools.ps1 @@ -487,15 +487,11 @@ function Install-PSAteraModule { $module = Get-Module -ListAvailable -Name PSAtera If ( (-not $module) -and (IsAdmin) ) { LogMsg "Installing PSAtera Powershell module" - Install-Module -Name PSAtera -MinimumVersion 2.8.5.201 + Install-Module -Name PSAtera -MinimumVersion 2.8.5.201 -Force } ElseIf ( (-not $module) -and (-not (IsAdmin)) ) { LogMsg "The PSAtera module needs to be installed, but the current security context is not sufficient to install it" } - ElseIf ( ($module) -and (IsAdmin) ) { - LogMsg "Updating PSAtera Powershell module" - Update-Module -Name PSAtera -Force - } } Catch { LogErr $_.Exception.Message } }