In your first example you are trying to connect to WMI remotely and in the second you are connecting to WMI on the system itself. Get-WmiObject uses DCOM to connect to remote systems. The error message suggests that that connection can't be made. Check to see if there is a firewall blocking DCOM and/or WMI traffic. By default the Windows firewall doesn't allow WMI related traffic.