Welcome › Forums › General PowerShell Q&A › Script hangs when accessing remote machine
The below script just hangs with no error msg.
Get-WmiObject -computername jaguar -Class Win32_Service -Filter “name=’XblGameSave'”
I can access jaguar with ping and with Win10 file explorer. The same script executes fine when accessing 4 other machines on the same network.
The PS version is 5 – minor version 1 – built 19041 – revision 1
Any thoughts/help will be much appreciated – TIA, Joe
Check Windows Management Framework, Windows firewall service is running or not. Mostly a server restart would fix this kind of issue with WMI. but its not a proper solution.
You can do the same by using Invoke-Command as well.