windows update issue by install-windowsupdate

Occasional Contributor

hi

i try to install windows update by WAC\remote powershell,  i get access is denied message :

[servername]: PS C:\> Install-WindowsUpdate

Confirm
Are you sure you want to perform this action?
Performing the operation "(1/17/2020 10:20:12 PM) 2020-01 Cumulative Update for .NET Framework 3.5, 4.7.2 and 4.8 for Windows Server 2019
for x64 (KB4535101)[71MB]" on target "HYPERV-1".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y

Confirm
Are you sure you want to perform this action?
Performing the operation "(1/17/2020 10:29:31 PM) 2020-01 Cumulative Update for Windows Server 2019 for x64-based Systems
(KB4534273)[283MB]" on target "HYPERV-1".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y

X ComputerName Result     KB          Size Title
- ------------ ------     --          ---- -----
1 HYPERV-1     Accepted   KB4535101   71MB 2020-01 Cumulative Update for .NET Framework 3.5, 4.7.2 and 4.8 for Windows Server 2019 for x6...
1 HYPERV-1     Accepted   KB4534273  283MB 2020-01 Cumulative Update for Windows Server 2019 for x64-based Systems (KB4534273)
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,PSWindowsUpdate.GetWindowsUpdate

 how resolve this issue, 

my user is local admin.

0 Replies