/build/static/layout/Breadcrumb_cap_w.png

REMOVE A FOLDER USING KACE

hello all-

 

i am trying to remove this folder from all users pc, can someone please help me on how i can get this accomplish in kace 1000. i have a batch that i can use. do you guys know of  vbs script i can use.

 

Delete “ ~Cache~ ” folder in the following path:

C:\Summit\Teller\ExePath\cache

rmdir /s /q "C:\Summit\Teller\ExePath\cashe"

 

thanks

 

 

 

 

 


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: dugullett 11 years ago
Red Belt
3

Online Kscript.

VERIFY: A directory exists.

C:\Summit\Teller\ExePath\cache

REMEDIATION: Run batch file

@echo off

rmdir /s /q "C:\Summit\Teller\ExePath\cache"


Comments:
  • VB would mean extra lines when only the one is needed. Is there any particular reason you want VB? - dugullett 11 years ago
  • no reason dugullett somone told me that VB works better in KACE - brighstarcuit 11 years ago
    • Well if you really want to create your VB. Upload it as a dependency. Use the same VERIFY step.

      Under the REMEDIATION: Launch a program.
      Directory: $(KACE_SYS_DIR)
      File: cscript.exe
      Parameters: $(KACE_DEPENDENCY_DIR)\<script>.vbs

      As far as writing the script, since that one is an easier one I would Google it. There are a ton of examples out there. - dugullett 11 years ago
  • dugullett i dont have the option to run bactch file in remediation - brighstarcuit 11 years ago
    • Make sure Windows is selected as the OS. - dugullett 11 years ago
  • got it in the parameters section what should i use

    Remediation
    Run the batch file “REMOVE CACHE†with params “rmdir /s /q â€C:\Summit\Teller\ExePath\cache“â€.EditRun a batch file...
    Script Name:
    Batch file: @echo off


    Wait for completion
    Parameters: - brighstarcuit 11 years ago
    • You can leave that blank. - dugullett 11 years ago
  • now i try to execute i am getting Log for REMOVE CACHE FOLDER on SUN-TRAIN-03[ Show All ]

    --------------------------------------------------------------------------------

    Started: 02/12/2013 15:45:32
    Finished: 02/12/2013 15:45:32
    Elapsed Time: 0 second
    Status: 3


    Output Log
    Skipping 'REMOVE CACHE FOLDER' because not allowed to execute logged off - brighstarcuit 11 years ago
    • Check mark the box under the schedule settings "Allow Run While Logged Off". - dugullett 11 years ago
  • thanks for all your help dugullett - brighstarcuit 11 years ago
Posted by: worzie 11 years ago
Fourth Degree Brown Belt
1

My scripts pretty much all have this as the end of a run program SYS\cmd.exe task:

/C "rd /s /q "$(KACE_DEPENDENCY_DIR)""
 
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