V1.2.4
This commit is contained in:
parent
421fe30236
commit
e25bb48cda
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue