Kaseya Community

How do I reference the coimputer name in a procedure

  • I had thought it was #Machiine# but that craps out the kaseya services.

    I'm running an executePowershell command with this arguement.

    Set-Service –Name SAVService –Computer "Machine" –StartupType “Automatic

  • #vMachine.MachName# is what you can use.

  • I use getVariable "Machine.Group ID" to "MachID" which then reference as #MachID# in my procedures.

  • Hi,

    You can try "Machine.Gorup ID" in a getVariable statement.

    BR,

  • Or just drop the -Computer parameter altogether. Set-Service like most powershell cmdlets that can target other machines default to the local machine if not specified.