1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

finding remote os verion and info

Discussion in 'T&T - Functions' started by JB2, Jan 27, 2015.

  1. JB2

    JB2

    Joined:
    Jan 9, 2015
    Messages:
    9
    Likes Received:
    0
    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?
     
  2. Christian Albaret

    Joined:
    Jul 1, 2008
    Messages:
    154
    Likes Received:
    1
    You can have a look in the help at: TCC / Variables & Functions / Variables / Variables by category, in categories 'Hardware status' and 'Operating system and software status'.
     
  3. Rod Savard

    Joined:
    May 26, 2008
    Messages:
    481
    Likes Received:
    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.
     
  4. JB2

    JB2

    Joined:
    Jan 9, 2015
    Messages:
    9
    Likes Received:
    0
    thanks guys all tis info have pointed me in the right direction
     
  5. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    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
     
  6. Rod Savard

    Joined:
    May 26, 2008
    Messages:
    481
    Likes Received:
    3
    Good to know...thanks!
     

Share This Page