Forum Discussion

MicRi's avatar
MicRi
Occasional Reader
Oct 06, 2025

After installing KB5065426, access to remote host no longer works with "Invoke-Command -Session"

Hello, we have noticed that after installing the KB5065426 update, there are problems accessing a remote host via Invoke-Command and executing further code in Powershell.

Before installing the update, the following code worked to execute a script directly on the target host. 
$session = New-PSSession -ComputerName $hostname -Credential $credentials
Invoke-Command -Session $session -ScriptBlock $patchScript

Once the update is installed, access breaks and you get the following error:

Connecting to remote server (hostname) failed with the following error message : Access is denied. 
For more information, see the about_Remote_Troubleshooting Help topic.
CategoryInfo: OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed

Is there any information available about this? Unfortunately, we currently had to uninstall the update so that existing access to the remote host via “Invoke-Command -Session $session” would work. 

No RepliesBe the first to reply

Resources