PortValhalla/scripts/Windows/Scripts/Prerequisites.ps1

12 lines
280 B
PowerShell
Raw Normal View History

2023-07-12 20:37:31 +00:00
#!/bin/pwsh
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
{
2023-06-22 15:22:45 +00:00
if (-not (Get-Module -ListAvailable $module))
{
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";