Home

windows update issue by install-windowsupdate

%3CLINGO-SUB%20id%3D%22lingo-sub-1115350%22%20slang%3D%22en-US%22%3Ewindows%20update%20issue%20by%20install-windowsupdate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1115350%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%3C%2FP%3E%3CP%3Ei%20try%20to%20install%20windows%20update%20by%20WAC%5Cremote%20powershell%2C%26nbsp%3B%20i%20get%20access%20is%20denied%20message%20%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5Bservername%5D%3A%20PS%20C%3A%5C%26gt%3B%20Install-WindowsUpdate%0A%0AConfirm%0AAre%20you%20sure%20you%20want%20to%20perform%20this%20action%3F%0APerforming%20the%20operation%20%22(1%2F17%2F2020%2010%3A20%3A12%20PM)%202020-01%20Cumulative%20Update%20for%20.NET%20Framework%203.5%2C%204.7.2%20and%204.8%20for%20Windows%20Server%202019%0Afor%20x64%20(KB4535101)%5B71MB%5D%22%20on%20target%20%22HYPERV-1%22.%0A%5BY%5D%20Yes%20%20%5BA%5D%20Yes%20to%20All%20%20%5BN%5D%20No%20%20%5BL%5D%20No%20to%20All%20%20%5B%3F%5D%20Help%20(default%20is%20%22Y%22)%3A%20y%0A%0AConfirm%0AAre%20you%20sure%20you%20want%20to%20perform%20this%20action%3F%0APerforming%20the%20operation%20%22(1%2F17%2F2020%2010%3A29%3A31%20PM)%202020-01%20Cumulative%20Update%20for%20Windows%20Server%202019%20for%20x64-based%20Systems%0A(KB4534273)%5B283MB%5D%22%20on%20target%20%22HYPERV-1%22.%0A%5BY%5D%20Yes%20%20%5BA%5D%20Yes%20to%20All%20%20%5BN%5D%20No%20%20%5BL%5D%20No%20to%20All%20%20%5B%3F%5D%20Help%20(default%20is%20%22Y%22)%3A%20y%0A%0AX%20ComputerName%20Result%20%20%20%20%20KB%20%20%20%20%20%20%20%20%20%20Size%20Title%0A-%20------------%20------%20%20%20%20%20--%20%20%20%20%20%20%20%20%20%20----%20-----%0A1%20HYPERV-1%20%20%20%20%20Accepted%20%20%20KB4535101%20%20%2071MB%202020-01%20Cumulative%20Update%20for%20.NET%20Framework%203.5%2C%204.7.2%20and%204.8%20for%20Windows%20Server%202019%20for%20x6...%0A1%20HYPERV-1%20%20%20%20%20Accepted%20%20%20KB4534273%20%20283MB%202020-01%20Cumulative%20Update%20for%20Windows%20Server%202019%20for%20x64-based%20Systems%20(KB4534273)%0AAccess%20is%20denied.%20(Exception%20from%20HRESULT%3A%200x80070005%20(E_ACCESSDENIED))%0A%20%20%20%20%2B%20CategoryInfo%20%20%20%20%20%20%20%20%20%20%3A%20NotSpecified%3A%20(%3A)%20%5BGet-WindowsUpdate%5D%2C%20UnauthorizedAccessException%0A%20%20%20%20%2B%20FullyQualifiedErrorId%20%3A%20System.UnauthorizedAccessException%2CPSWindowsUpdate.GetWindowsUpdate%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3Bhow%20resolve%20this%20issue%2C%26nbsp%3B%3C%2FP%3E%3CP%3Emy%20user%20is%20local%20admin.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1115350%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New 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.

Related Conversations