Fix module installation check

This commit is contained in:
Manuel Thalmann 2023-06-22 17:22:45 +02:00
parent ba5fde3d3a
commit aaed1891bc

View file

@ -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";
}