Is there a way to have K1000 to remove the agent from a computer that is currently calling in?
Hello,
We are looking to free up a bunch of seats on our k1000. There are a number of computers that have the agent installed that we want to remove it from. Trouble is, these computers are spread throughout our satellite offices. Is there a script we can run or some sort of provisioning that will allow us to silently remove the k1000 agent from specific machines?
Answers (3)
You can go through agent provisioning to target individual machines, but the simplest way I have found for Windows machines (if they are on the current 5.3.53177 agent) is to create an Offline kscript with the following command:
Launch “$(KACE_SYS_DIR)\msiexec.exe” with params “/x {C80E28A9-0620-48D7-A015-099636FA6FCB} REMOVE=ALL /qn"
Here is the xml for that script, if you'd rather just paste that in:
<?xml version="1.0" encoding="utf-8" ?>
<kbots xmlns="http://kace.com/Kbots.xsd">
<kbot>
<config name="Uninstall KACE Agent (Windows)" type="policy" id="430" version="1334685877" description="Using msiexec to uninstall KACE agent 5.3.53153 based on GUID.">
<execute disconnected="true" logged_off="true">
<schedule minutes="*/15" hours="*" daysOfMonth="*" months="*" daysOfWeek="*" />
<event name="NOW" />
</execute>
</config>
<compliance>
<verify on_failure="break" attempts="1">
<always_fail />
<on_verify_success>
</on_verify_success>
<on_verify_failure>
<launch_program path="$(KACE_SYS_DIR)" program="msiexec.exe" wait="true" parms="/x {C80E28A9-0620-48D7-A015-099636FA6FCB} REMOVE=ALL /qn" />
<on_remediation_success>
</on_remediation_success>
<on_remediation_failure>
</on_remediation_failure>
</on_verify_failure>
</verify>
</compliance>
</kbot>
</kbots>
Comments:
-
Will this only work for the 5.3.53153 agent? - dallanwagz 12 years ago