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 } }