I'm having trouble connecting to a remote machine via WMI. Getting the error message
The RPC Server is unavailable
- I've ensured that the
Remote Procedure Call
service is turned on. - I've opened all necessary ports in the firewall.
- I've turned off the firewall altogether to eliminate any possibility it's the firewall for testing. Both on Server & Client
- I've ran the following script via powershell remotely and get the error message.
- If I run the same powershell script through another server on the same network it works! I get my drive info listed. But it won't work across the internet from my office?!? What am I doing wrong?
Get-WmiObject -Namespace "root\cimv2" -Class Win32_LogicalDisk -ComputerName 192.168.1.1 -Credential MyDomain\Administrator
I did replace the IP to my public IP on this command.
I can ping the IP and do get replies.