how to use WMI on Remote PC
Posted: Sat May 28, 2022 11:13 am
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
If it is stopped, type:
Add access permission to the remote host.
REMOTECOMPUTERNAME = Name "see" under Network
IP = 192.xxx.xxx.xxx
---
also Windows Firewall is blocking the Remote Access.
goto Firewall and select WMI when all is enable try
you will ask for Password ... and hope now you got access of Memory Information
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 winrmCode: Select all
enable-PSRemoting -forceCode: Select all
winrm s winrm/config/client '@{TrustedHosts="REMOTECOMPUTERNAME/IP"}'IP = 192.xxx.xxx.xxx
---
also Windows Firewall is blocking the Remote Access.
goto Firewall and select WMI when all is enable try
Code: Select all
get-wmiobject CIM_Memory -computername "RemoteName" -credential "username"