/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Force Inventory as last step of Uninstall Script

05/26/2016 1314 views
I have a script that uninstalls my program using WMI command and this works as expected.  But I think I need to force a full Inventory on the PC otherwise they still show as needing the script run because the scrip is tied to a smartlabel that looks in the software inventory to see if a piece of software is in the list.  Because the software will not show as removed until after another inventory it takes a couple of days for a system to show as having the process complete.

I added a step to my script:  
Launch $(KACE_INSTALL)\runkbot.exe with params 4 0”   

What is the correct params for the process so that it will reinventory the full system and upload the information as part of my script which in turn will clear the system from my smartlabel.

It seems like this would be something that would just be a dropdown to force an inventory as one of the common items that you would do as part of scripting.

Thanks in advance for any suggestions.



1 Comment   [ + ] Show comment

Comments

  • I hope someone responds with something that works because I have never been able to make that happen.

All Answers

1
I found a way to make it work with a .bat file.
I added the following as the last 2 lines:

cd "c:\ProgramData\Dell\KACE\"
runkbot 4 0

I think my problem was that I always had them on one line and it never worked for me. 
Answered 05/27/2016 by: rockhead44
Red 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

View more:

Share

 
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