I am trying to install a patch to SharePoint 2016 Farm using Remote PowerShell. I have administrator rights on the remote SharePoint machines and Windows Update COM Objects are created successfully as well. But, as soon as the Install starts for the patch, the Windows Update Agent terminates the installation with the following log in SoftwareDistribution\ReportingEvents.log -
If I try running my script with a different KB number which is not related to SharePoint, the patch gets installed successfully.
On checking the API reference for the error code, it says the following -
0x80240020 WU_E_NO_INTERACTIVE_USER Operation did not complete because there is no logged-on interactive user.
I searched around and found an exact thread over here - https://batchpatch.com/forum/topic/new-user-getting-hresult-2145124320
Is there any way to install the SharePoint patch without logging into the SharePoint Farm with RDP and then manually installing the updates?
EDIT - Is it possible not to use CredSSP? I don't want to use CredSSP solution. The problem with CredSSP is that it uses Clear Text which poses a security risk. Furthermore, if a single machine is compromised, it could lead to compromise of other machines as well.