Kaseya Community

Getting the Manufacturer from a Agent Procedure

This question is not answered

I am wanting to run an agent procedure that gets the Manufacturer and then runs a script. We currently have about 4 manufacturers we could use.

With my script I would like an If statement, but I can't figure out where to get the manufacturer in an agent procedure. Thoughts. 

All Replies
  • You can get the manufacturer from WMI, e. g.

    Powershell Version:

    (gwmi win32_computersystem -Property Manufacturer).Manufacturer

    CMD Version

    wmic computersystem get manufacturer

  • Kaseya has already collected this information for you and provides it as under the System Info which can be called in a script without declaration like this:

    #vMachine.Manufacturer#

    So you could actually skip the getting part all together and just do something like:

    If #vMachine.Manufacturer# Equals XXXX

    Then etc...

    For your reference: help.kaseya.com/.../index.asp