diff --git a/scripts/Windows/Scripts/Prerequisites.ps1 b/scripts/Windows/Scripts/Prerequisites.ps1 index fa6a8931..2bc78fba 100644 --- a/scripts/Windows/Scripts/Prerequisites.ps1 +++ b/scripts/Windows/Scripts/Prerequisites.ps1 @@ -1,6 +1,6 @@ foreach ($module in @("PSWindowsUpdate", "KnownFolders")) { - if (-not (Get-Module $module)) + if (-not (Get-Module -ListAvailable $module)) { Install-Module -AcceptLicense -Force "$module"; }