/build/static/layout/Breadcrumb_cap_w.png

Understanding K1000 Scripting Tasks

Hi Guys,

I am fairly new to the K1000 and just have a few simple questions I hope you can help with.

Essentially what I want to do is ensure that the a scripted install of UltraVNC is not deployed again to the same machine if the software has been installed already. Is there any easy way to do this?

 I see there is a task under the Verify section to 'Test if a Directory exists' however am I to understand that if the outcome of this task is successful  ie: if the directory does exist then the script will move to the On Success part of the task and keep executing.

Thanks

 


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: dugullett 11 years ago
Red Belt
5

Set you verify for file, directory, or reg key exists. If it does not exists then the remediation is where it will run your installer. The next time the script runs it will see that your verify now exists, and there will be no need to run remediation.

I usually use the "on success" to log a message.

K1000 KKE's: https://support.software.dell.com/k1000-systems-management-appliance/kb?k=KKE


Comments:
  • All current recordings are accessible at www.kace.com/support/training/kke/archive.

    The recording link listed here is no longer available. A newer version of this session may be available at the archive above.

    Ron Colson
    KACE Koach - ronco 9 years ago
Posted by: jknox 11 years ago
Red Belt
2

What dugullett posted is great information for general scripting and you will want to use that in the future.

In this case, there is also a built-in wizard for UVNC and it will add the verify step for you.  That said, it needs to be updated: http://www.itninja.com/blog/view/kace-scripting-uvnc-version-1-0-9-6-2-and-newer

Posted by: Dansiman 1 year ago
White Belt
0

Late to the party, but there's a simple solution to this (maybe it didn't yet exist when this question was posted). Instead of verifying "directory exists", verify that the "directory does not exist". Then you don't need to invert your subsequent logic.

 
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