/build/static/layout/Breadcrumb_cap_w.png

Label based on Registry value not matching a KACE variable

We currently use LogMeIn for some remote support.  The issue is when a computer gets re-named, the LMI description does not automatically update.  So if my-pc-bob gets renamed to my-pc-sally, LMI still shows the old name making it difficult.  I am trying to find the best way to check if a registry key matches the computer host name and if not, set it to the host name.

I was checking to see if there as a $KACE variable for the computer name, but there does not seem to be one.  I don't want to generate a script that runs on all computers to keep this in sync.  I would rather create a label for computers that do not match the name to the registry key and then have a script run daily against that label.


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: SMal.tmcc 10 years ago
Red Belt
1

That is simple to do.

Create a custom software inventory for that key.  ( I am not sure of your key name so I am craeating a fake one for this answer, you will need to use the proper key)

You need to use %computername%

 


Comments:
  • Perfect! - JordanNolan 10 years ago
  • One last thing. Now that I found and labeled the computers where the computer name does not match I want to set the registry value to the computer name.

    I already have an Onlie Kscript to set other registry values and wanted to add this line as well, but %computername% does not work for the data (key value). It puts in the text "%computername%"

    Is tried to see if there was a $KACE variable that I am supposed to use, but did not see one for computername. - JordanNolan 10 years ago
Posted by: SMal.tmcc 10 years ago
Red Belt
0

does not seem to work as a "enforce registry settings" but will work as a "launch a program"

I will see if maybe it needs some extra characters to use the name the other way (IE /%computername/% or %%computername%%)

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ