# Has anyone been able to get Windows Update working from Remote computer?

**URL:** <https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098>\
**Category:** PowerShell Help\
**Created:** [August 8, 2022, 3:01am UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098 "2022-08-08T03:01:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt1974](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@matt1974](https://forums.powershell.org/u/matt1974)\
**Post date:** [August 8, 2022, 3:01am UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098/1 "2022-08-08T03:01:56Z")

</div>

I am able to do everything else just about, but when I try and run Windows Update with the PSWindowsUpdate module, I get access denied from Remote system everytime. Ive seen a large number of posts online with the same issue. I was wondering if this can actually be done. I dont have my script that fails in front of me, Ill post it tomorrow when I do.

Thanks.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [August 8, 2022, 8:19am UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098/2 "2022-08-08T08:19:59Z")

</div>

I would recommend spending your time on something more promising than using PowerShell to update Computers. Use WSUS instead - it is made for. 😉

---

<div class="post-metadata">

**Author:** ![matt1974](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@matt1974](https://forums.powershell.org/u/matt1974)\
**Post date:** [August 8, 2022, 1:19pm UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098/3 "2022-08-08T13:19:16Z")

</div>

Gotya…  
I have a bunch of tasks and wanted to minimize the amount of logging into the servers. But at the end of the day I will still need to login at least 1 time, so yea I can kick the update off then.

Thanks!

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [August 8, 2022, 1:56pm UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098/4 "2022-08-08T13:56:45Z")

</div>

> [@matt1974](#):
>
> But at the end of the day I will still need to login at least 1 time, so yea I can kick the update off then.

That shouldn’t be necessary at all. That’s what I meant. If you set up your WSUS (or SCCM) correctly the servers install the updates automatically.

---

<div class="post-metadata">

**Author:** ![matt1974](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@matt1974](https://forums.powershell.org/u/matt1974)\
**Post date:** [August 8, 2022, 2:03pm UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098/5 "2022-08-08T14:03:18Z")

</div>

oh yea I understand.

I’m in an environment without access to those atm.

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [August 8, 2022, 3:36pm UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098/6 "2022-08-08T15:36:28Z")

</div>

Check the scripts that the Windows Admin Center team uses.

> **[The Windows Admin Center 1809 PowerShell Scripts](https://medium.com/@RealNetwork/the-windows-admin-center-1809-powershell-scripts-f2923c70fb8f)**
>
> List of the Windows Admin Center scripts, and the scripts themselves. Plain and simple.

The Description of `Install-WindowsUpdates` has a note that you should find telling.

> .DESCRIPTION  
> Create a scheduled task to run a powershell script file to installs all available windows updates through ComObject, restart the machine if needed.  
> This is a workaround since CreateUpdateDownloader() and CreateUpdateInstaller() methods can’t be called from a remote computer — E\_ACCESSDENIED.  
> More details see [Using WUA From a Remote Computer - Win32 apps | Microsoft Learn](https://msdn.microsoft.com/en-us/library/windows/desktop/aa387288(v=vs.85).aspx)

---

<div class="post-metadata">

**Author:** ![matt1974](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@matt1974](https://forums.powershell.org/u/matt1974)\
**Post date:** [August 8, 2022, 3:41pm UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098/7 "2022-08-08T15:41:20Z")

</div>

Wow that helps, thanks krzydoug!

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:17pm UTC](https://forums.powershell.org/t/has-anyone-been-able-to-get-windows-update-working-from-remote-computer/20098/8 "2024-05-16T20:17:39Z")

</div>

Closed on May 16, 2024, 8:17pm UTC


