KScript to Remove Shortcut from Public Desktop

New to KBox and trying to use a KScript to remove a folder "NAE Remote Support" from Public Desktop "C:\Users\Public\Desktop". It seemed pretty straightforward, but after a successful run, the directory is still there. Attached is a screenshot of the setup. Am I attacking this from the wrong angle?


0 Comments   [ + ] Show comments

Answers (1)

Posted by: rockhead44 7 years ago
Red Belt
I always execute these things via a batch file from an offline kscript (upload the .bat as a dependency). In your case, the file would look something like this:

@echo off

del "C:\Users\Public\Desktop\NAE Remote Support"


I set step 1 of the script to Always Fail. Under "remediation" I do 1. Run a batch file (plug in your .bat name and the contents) and that's it. 2 simple steps. 
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