Although Powershell have modudule call PSWindowsUpdate but you cannot remote call windows update.
So you could use invoke-command -scriptblock to register-scheduletask a get-windowsupdate -acceptall
- Check the target computer have pswindowsupdate module or not
- if not copy it (assume it cannot direct access internet)
- create a Register-ScheduledJob to do windows update
- and check still have patch missing, if yes, repeat step 3
留言
發佈留言