11 lines
280 B
PowerShell
11 lines
280 B
PowerShell
#!/bin/pwsh
|
|
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
|
{
|
|
if (-not (Get-Module -ListAvailable $module))
|
|
{
|
|
Install-Module -AcceptLicense -Force "$module";
|
|
}
|
|
}
|
|
|
|
$Global:InformationPreference = "Continue";
|
|
$Global:ErrorActionPreference = "Inquire";
|