2023-06-18 17:58:01 +00:00
|
|
|
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
|
|
|
{
|
2023-06-22 15:22:45 +00:00
|
|
|
if (-not (Get-Module -ListAvailable $module))
|
2023-06-18 17:58:01 +00:00
|
|
|
{
|
|
|
|
Install-Module -AcceptLicense -Force "$module";
|
|
|
|
}
|
|
|
|
}
|
2023-06-22 15:27:43 +00:00
|
|
|
|
|
|
|
$Global:InformationPreference = "Continue";
|
2023-06-29 18:33:56 +00:00
|
|
|
$Global:ErrorActionPreference = "Inquire";
|