/build/static/layout/Breadcrumb_cap_w.png
03/31/2017 1490 views

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?


cAPMtg.jpeg

0 Comments   [ + ] Show comments

Comments


All Answers

2
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. 
Answered 03/31/2017 by: rockhead44
Red Belt