/build/static/layout/Breadcrumb_cap_w.png

K2000 - Install default software from K1000 during deployment

Update: Added Version 2.0 which includes the new konea path. DOWNLOAD Version 2.0 

Within the K1000 you'll have all your managed installation. If you want to install your software during the deployment within the K2000 during a special task here is how:

  1. Create a K1000 Script which calls all of your software you want to install in a single task (note: you can create different scripts for different K2000 deployment sets)
  2. Call the K1000 script(s) as a postinstall task in your K2000 deployment.
When you create the K1000 scripts take note about the scriptid (see screenshots).
uslTQL.png
xkLpQp.png
lFl5wa.png
9LHpgj.png
y123iC.png


After that you have to create a post install task which calls the script id:
4H8SBB.png

The executable is a autoit script created by myself. You can use and modify it the way you like. 

Screenshots during deployment:
If there is no connection to the K1000 this warning will show until a connection is established.
SWS70t.png 

During the deploy...
fThnyL.png


Comments

  • Awesome. I am also a AutoIT user and love how well it intergrates with the K1000 & K2000.

    In our environment the K1000 scripts are more of breakfix, update, and very scripty type things.

    My K2000 has all the software installs, but I still like this idea a lot and it could prevent use from doubling up jobs in some situations.

    Looking at the code, I assume the KBOT client has to be installed on the computer for this to work. That could be my only issue as we install it after we name the devices by hand.

    Our naming convention is too random to be automated.

    Best thing I learned is I see how you passed the script ID to the autoit.exe and then to runkbot.
    I have always use the runkbot 4 0 and runkbot 6 0 without really knowing what they did.

    Now I can see, it was calling script #4 and script #6 what ever those are, and that I can manually call my other scripts the same way! That is awesome when I am waiting for deployments in a pinch. - ViciousXUSMC 6 years ago
    • Hi ViciousXUSMC,
      thanks for your feedback! You are right. You can use this tool to run every Script id you like as postinstall task :)

      Regards
      Timo - Timokirch 6 years ago
      • Just got to use this today, works well!

        Only suggestions I came up with is add #RequireAdmin to the script.

        When running from the K2000 as system it is not needed, but for using it local & testing unless I ran it from a pre-elevated cmd it would not work.

        The other thing you could do is add @SW_HIDE to your RunWait() commands so that the command windows do not show on screen.

        Last MsgBox() freezes execution while it is up and of course keeps popping up with sounds and top priority. This could be changed to a GUI or a SplashTextOn() message so that it can stay up while waiting for connection.

        I also added the ability to pass multiple parameters at once so you can call the .exe just one time but launch multiple K1000 script jobs.

        Thanks again for the share, I learned a few great things about the K1000 and the agent by looking at it.

        With your permission I can post the modified source code. - ViciousXUSMC 6 years ago
      • That's why i love to share ideas :)

        Thank you very much for these information's. I would love if you can post / send the modified code. I would update the downloads afterwards :) - Timokirch 6 years ago
  • Is this still supposed to work? I get "Waiting for connection to K1" and won't work. Link to version 2.0 is broken too. - maxiakra 5 months ago
    • Yes it still works and I just verified that the download link also works. It is important that you have linked your support account in your itninja profile to be able to download the files.

      The reason why it waits for K1 connection is mostly that the agent is not installed or it can not connect to the SMA. Did you install the SMA agent before running this script? If the agent is installed, are there errors displayed in konea.log that is located in C:\programdata\Quest\KACE? - sven.hain 5 months ago
      • Thanks a lot! I managed to download it.

        But anyway, k2_script_call.exe doesn't work for me, but by reading out the .au3 file I got to how the scripts are called, so managed to trigger the script with
        "C:\Program Files (x86)\Quest\KACE\runkbot.exe" <Script ID> 0 - maxiakra 5 months ago
      • okay that is interesting that it does not work for you. Normally you just have to add "k2_script_call.exe 123" where 123 is the script ID from SMA that you also call now with the runkbot command. But happy that you found another way of using it :) Have a great weekend - sven.hain 5 months ago
  • I found this via another forum post (https://www.itninja.com/blog/view/k1000-use-scripts-as-post-installation-tasks-on-k2000-or-run-now-via-gui-on-pc) and was hoping to download that one with the GUI. Does Version 2 have the GUI that the other post references? Also, I am unable to download as it will cannot verify my KACE support but I am able to sign into quest and get support from them from there site. Is there another way to download this? - hilld 6 days ago
    • Good morning, no the version two of this script just changed the konea path since it was first created under the old Dell path and after it got separated to Quest the path changed. This script has no gui, you can only upload the files to SDA and call it in the command line. Do you get an error if you try to validate your support account in your ITNinja profile? - sven.hain 5 days ago
      • Yes, it tells me I do not have a quest account, which I very much do. - hilld 5 days ago
This post is locked
 
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