The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

Hi,

I getting the following error when i run powershell command on remote computer i configure firewall and winRM through GPO and i Notice command respond only to Windows 7 Service Pack 1 and Windows 8.1 Pro 

ERROR

Cannot convert value "\\EYEPAXWS-03\root\default:stdRegProv" to type "System.Management.ManagementClass". Error: "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)"
At D:\Script\Get-WindowsKey.ps1:10 char:9
+         $wmi = [WMIClass]"\\$target\root\default:stdRegProv"
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvalidCastToWMIClass
 
Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
At D:\Script\Get-WindowsKey.ps1:27 char:20
+         $win32os = Get-WmiObject Win32_OperatingSystem -computer $target
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], COMException
    + FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand


Thanks

April 29th, 2015 3:27am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics