finding remote os verion and info

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jan 9, 2015
9
0
#1
is there a function in TCC to see what memory /os version/cpu etc have on a pc other than using systeminfo and filtering it?
 
May 26, 2008
481
3
#3
WMI would be perfect for this, but looking at the help files neither the @WMI function nor WMIQUERY command seem to support remote systems.

You could use the wmic.exe external program though. With the /node switch it will query a remote system. Here are some samples:

Code:
wmic /node:COMPUTER csproduct get name
wmic /node:COMPUTER bios get version
wmic /node:COMPUTER os get caption
wmic /node:COMPUTER cpu get name
wmic /node:COMPUTER memorychip get capacity
That last one actually shows the size of each memory module in your system. You'd have to total them manually. I'm not sure if there is a WMI query that returns one value representing total RAM. Seems like there would be, but the few minutes I looked I didn't find it.
 
#5
WMI would be perfect for this, but looking at the help files neither the @WMI function nor WMIQUERY command seem to support remote systems.

You could use the wmic.exe external program though. With the /node switch it will query a remote system. Here are some samples:

Code:
wmic /node:COMPUTER csproduct get name
wmic /node:COMPUTER bios get version
wmic /node:COMPUTER os get caption
wmic /node:COMPUTER cpu get name
wmic /node:COMPUTER memorychip get capacity
That last one actually shows the size of each memory module in your system. You'd have to total them manually. I'm not sure if there is a WMI query that returns one value representing total RAM. Seems like there would be, but the few minutes I looked I didn't find it.
In v17, @WMI and WMIQUERY both support remote machines (though the help doesn't make that very clear).
Code:
v:\> echo %@wmi["\\lucky\root\CIMV2","SELECT Name FROM Win32_ComputerSystem"]
LUCKY

v:\> wmiquery \\lucky\root\CIMV2 "SELECT Name FROM Win32_ComputerSystem"
LUCKY