Page 1 of 1

how to use WMI on Remote PC

Posted: Sat May 28, 2022 11:13 am
by AUGE_OHR
hi,

you can get a lot of PC Information use WMI
to use it for Remote PC you need to enable "winrm" Service on Remote PC

try Powershell on Remote PC and check with

Code: Select all

get-service winrm
If it is stopped, type:

Code: Select all

enable-PSRemoting -force
Add access permission to the remote host.

Code: Select all

winrm s winrm/config/client '@{TrustedHosts="REMOTECOMPUTERNAME/IP"}'
REMOTECOMPUTERNAME = Name "see" under Network
IP = 192.xxx.xxx.xxx

---

also Windows Firewall is blocking the Remote Access.
goto Firewall and select WMI
WMI_Firewall.JPG
WMI_Firewall.JPG (237.29 KiB) Viewed 11014 times
when all is enable try

Code: Select all

get-wmiobject CIM_Memory -computername "RemoteName" -credential "username"
you will ask for Password ... and hope now you got access of Memory Information