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)
Please log in to answer
Posted by:
rockhead44
7 years ago
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"
exit
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.