Powershell Remote: Microsoft.Update.Session, Access Denied: 0x80070005

前端 未结 5 2081
面向向阳花
面向向阳花 2021-01-03 00:14

I\'ve written a script to search/download/install Windows Updates on a machine using the Microsoft.Update.Session COM Object. When run locally it works just fine, however wh

5条回答
  •  抹茶落季
    2021-01-03 01:06

    The other solution is to change Windows registry setting using PowerShell and optionally restart wuauserv for the changes to take effect.

    For example in Windows Server 2008R2 AutoUpdate settings can be found at:

    HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update
    

提交回复
热议问题