Comments on: How to Patch Hyper-V virtual machines through PowerShell Direct https://www.altaro.com/hyper-v/how-to-patch-hyper-v-virtual-machines-through-powershell-direct/ Hyper-V guides, how-tos, tips, and expert advice for system admins and IT professionals Wed, 31 Mar 2021 06:26:26 +0000 hourly 1 By: Symon Perriman https://www.altaro.com/hyper-v/how-to-patch-hyper-v-virtual-machines-through-powershell-direct/#comment-3490 Wed, 19 Feb 2020 17:25:00 +0000 http://www.altaro.com/hyper-v/?p=12030#comment-3490 In reply to stolaf048.

Hi stolaf048,

You are correct that wusa.exe still has the limitation with installing .msu files through a remote PowerShell session. One solution that I found online was through using Task Scheduler: https://stackoverflow.com/questions/50495609/how-to-automate-wusa-with-remoting-and-overcoming-the-lack-of-wait-cmd

Basically they have the installation script stored in a file share. They will run remote PowerShell to trigger Task Scheduler, which will run this script, which installs the MSU file.

Thanks,
Symon Perriman
Altaro Editor

]]>
By: stolaf048 https://www.altaro.com/hyper-v/how-to-patch-hyper-v-virtual-machines-through-powershell-direct/#comment-2592 Wed, 05 Feb 2020 11:24:00 +0000 http://www.altaro.com/hyper-v/?p=12030#comment-2592 small note:
wusa.exe cannot install msu-Files in Powershell Remote Session

]]>