This commit is contained in:
Olai Vike Bøe 2022-09-19 12:59:09 +02:00
parent 421fe30236
commit e25bb48cda

View file

@ -8,10 +8,16 @@ Start-Sleep -Milliseconds 500
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Write-Host "PSWindowsUpdate exists"
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Import-Module PSWindowsUpdate
}
}
else {
Write-Host "PSWindowsUpdate does not exist, Installing ..."
Install-Module PSWindowsUpdate -force
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Import-Module PSWindowsUpdate
}
}
function installwingetjson
{