Hi,
I’m trying to collect all the patches from list of servers which is in notepad. The command i use is Get-Hotfix -computername (Get-Content C:\users\ssubram4\Desktop\Patching\All_2016.txt)
In the file All_2016.txt, i have 250 servers.If the 10th server is unavailable, iam able to get the hotfix upto 9th server only and i got the below error.
Get-Hotfix : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
At line:1 char:1
- Get-Hotfix -computername (Get-Content C:\users\ssubram4\Desktop\Patch …
-
- CategoryInfo : NotSpecified: ( [Get-HotFix], COMException
- FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.PowerShell.Commands.GetHotFixCom
mand
I would like to skip the unreachable servers and move on to next server to the hotfix.
Kindly help me with the SAME SYNTAX.