Kaseya Community

Get file path from registry key

  • I am trying to create a script that will pull the data from the key and either output to a text file or email the results. The pull down menus in Kaseya seem straight forward, but I cannot get it to work. There is a file path in a key I wish to extract. How can I do this?

    Carl

    Legacy Forum Name: Get file path from registry key,
    Legacy Posted By Username: clomele
  • Script Name: Check for Shutdown Button Enabled on Console
    Script Description:

    IF True
    THEN
    Get Variable
    Parameter 1 : 0
    Parameter 2 : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\shutdownwithoutlogon
    Parameter 3 : Shutdown
    OS Type : 0
    Get Variable
    Parameter 1 : 6
    Parameter 2 :
    Parameter 3 : machine
    OS Type : 0
    Send Email
    Parameter 1 : support@domain.com
    Parameter 2 : [#machine#] - Shutdown Button Key
    Parameter 3 : Machine: #machine# , Shutdown Button Key: #Shutdown#
    OS Type : 0
    ELSE



    Hope this helps.

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: jpyzowski
  • There is a choice for "get file path from registry" and that is what I need, although just the putput wpuld be fine. I cannot get this to work mimicking your script. Any ideas?

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: clomele
  • I did get this to work, thank you for your help, it was perfect!

    Carl

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: clomele