Kaseya Community

Save computer name to variable

  • Is there a way to just get the computer name to populate a variable?

    I can get machinename.group.

    I just want the machine name though.

    Thanks!


    Legacy Forum Name: Save computer name to variable,
    Legacy Posted By Username: rvines
  • Just create a variable from the registry. Below is the key to look for.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName


    Legacy Forum Name: Script Discussion,
    Legacy Posted By Username: rage