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
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