Need to delete a Folder and subfolder from multiple computers using Kace

I am struggling trying to do a simple folder delete using Kace.  I found a support article that looks pretty simple here How to delete a folder using KScript (148142) (quest.com)  But this just doesn't work no matter what I do.  It reports successful but the folders never actually delete.  I tried another script that would run a batch file.  The batch file works if I run it manually but it doesn't work when pushing through Kace.  I have a couple other batch files that are working so I cloned them and swapped in the new batch file but no success.  I also tried pushing with a powershell script.  Script work if I run manually but not if I push through Kace.  I've spent at least a half day on this so any help would be appreciated.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: TheAustinDave 1 month ago
Second Degree Brown Belt


Sounds like the folder has different permission level, when running under your login it has the permission to run but the setting for the KACE Agent is different. Its possible you could try and mimic the agent permissions with the script, or perhaps change the permissions of the folder (and contents) to resolve.


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:


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