Fix module installation check
This commit is contained in:
parent
ba5fde3d3a
commit
aaed1891bc
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue