Kaseya Community

Create Registry Key with Kaseya

  • I can create and modify values all day using the kaseya script function "Set Registry Value". I cannot find a way to actually create a registry KEY. Has anyone done this. I want to avoid a vbscript, reg command, regedit, etc. Idea is to make it invisible to the user in Vista, and Kaseya is one of the only ways i have found to suppress the Annoying vista "Did you do this" message.

    The documentation shows nothing, and Kaseya tech support just wants to connect to my server to "troubleshoot".

    Legacy Forum Name: Create Registry Key with Kaseya,
    Legacy Posted By Username: boostmr2
  • There is no direct method in Kaseya to do this.

    Here is a work around....

    Cheers


    Script Name: Create Registry Key
    Script Description: This script will create a registry key by first creating a registry value underneath the desired key, then delete that value, thereby leaving the parent key.
    Written by Joshua Niland, joshua.niland@xcentral.com.au

    IF True
    THEN
    Set Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\Software\Test Key\Test Value
    Parameter 2 : Test Data
    Parameter 3 : REG_SZ
    OS Type : 0
    Delete Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\Software\Test Key\Test Value
    OS Type : 0
    ELSE



    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: XeviouS
  • XeviouS, that's actually rather clever. Good show!

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: GreyDuck
  • XeviouS
    There is no direct method in Kaseya to do this.

    Here is a work around....

    Cheers


    Script Name: Create Registry Key
    Script Description: This script will create a registry key by first creating a registry value underneath the desired key, then delete that value, thereby leaving the parent key.
    Written by Joshua Niland, joshua.niland@xcentral.com.au

    IF True
    THEN
    Set Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\Software\Test Key\Test Value
    Parameter 2 : Test Data
    Parameter 3 : REG_SZ
    OS Type : 0
    Delete Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\Software\Test Key\Test Value
    OS Type : 0
    ELSE



    You could run a shell command such as this one:

    REG ADD HKU\S-1-5-18\Printers\Connections

    or you could just run a Set Registry Value and put a \ at the end like so:

    HKEY_LOCAL_MACHINE\SOFTWARE\Alps\Test\

    with nothing at all in the data field.

    Michael

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: RCS-Michael
  • Awesome!