/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Script to Install KACE

10/02/2019 199 views
Wanted to set up a script to install Kace and skip if its already installed, like a log on script. Any help would greatly be appreciated.
4 Comments   [ + ] Show comments

Comments

  • msiexec /i "C:\PATH\TO\FILE\ampagent-10.0.0-x86_k1000.yourdomain.com.msi" /qn /norestart

    This might help you as a start. I haven't tested this to see if it's idempotent meaning if you run it twice on the same machine twice (after it's already been installed) whether it will display an error (unwanted) or just stop (desired). Also, I haven't tested this on an older version to see how it would react if there was an older version already installed. As far as dependencies are concerned, it requires your installer as an MSI and obviously you'd want to adjust path to msi to be correct. Additionally, this doesn't include a mechanism to transfer the MSI to the system. You may want to include it in your image, or you may want to host in on a file server or repository and pull it from there on the fly as an installation task. I hope this helps.
  • Are you looking for a script to install/check for the Kace Agent on a machine or something else?
  • More of a script to install KACE agent when a computer joins the domain upon logon, Ive been having issues with Kace pushing it out to Pcs that dont have it either, Ive pushed the install and alot of the devices on the network only show pending.
  • Ok so I have an issue doing the push install from KACE because I do not have WinRM enabled on my workstations and I don't have administrative control of the GPOs pushed to the machines. I use an administrator account to run a psexec session to the target machine. Once connected I map a network drive to the local machine that contains the installation files for KACE. My install string is just one line and they are all KACE provisioning provided files:
    agent_msi_provision.bat KACESERVERNAME client ampagent-9.1.204-x86.msi

    The provision bat will tell you if KACE is already present and not move forward with the install. Once it finishes I disconnect the mapping and terminate the session.


Community Chosen Answer

2

I mean... if it's not installed, then you cannot use the KACE SMA to install the agent.

Do you want to Install the agent for the first time? You could try provisioning from the KACE SMA OR use a GPO Policy.

Or upgrade existing agents?

See:

https://support.quest.com/kace-systems-management-appliance/kb/217592/group-policy-object-gpo-provisioning-wizard-tool-step-by-step

Answered 10/02/2019 by: Channeler
Red Belt

  • You should be using provisioning tool channeler is correct. Do you have a domain enviroment?

All Answers

0

There's quite a few different ways to do this. One example below.

First you'd want to check if the KACE agent is already installed.
wmic product get description | findstr /C:"KACE"
This should return "KACE Agent".

You'll want to capture that desired output, and continue execution if it's not present.

If it's not present, you'll want to download the MSI from a repository or file share, depending on your environment. If it's a new system image, consider having the MSI on the image and installing during the deployment process. Perhaps you could build it into an image from the KACE SDA if that's an option.

If you're looking for a command you can run that will install your KACE agent msi on a new system.

msiexec /i "C:\PATH\TO\FILE\ampagent-10.0.0-x86_k1000.yourdomain.com.msi" /qn /norestart

Dependencies:
You would need the MSI on the target destination, and the PATH/TO/FILE/ would need to match the location of the MSI.

Like I said, there are many ways to accomplish this including a group policy, though in more distributed environments, accessing a DC to apply the policy remotely might not be an option.
Group Policy or through imaging is probably the easiest method, particularly if you're working from a single location.
I hope this helps.

Answered 10/02/2019 by: Cinnoman
White Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share