/build/static/layout/Breadcrumb_cap_w.png

Force Inventory as last step of Uninstall Script

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
  • I hope someone responds with something that works because I have never been able to make that happen. - rockhead44 8 years ago

Answers (1)

Posted by: rockhead44 8 years ago
Red Belt
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. 
 
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