/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


KScript to Remove Shortcut from Public Desktop

03/31/2017 1895 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

 
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