Scripting Question

Trying to remove a folder using KACE

03/10/2016 829 views

Good Morning All,  I am hoping to get some help with a Offline KScript to remove a folder in my common files. I have run the script and it says success but the folder is still there.

Here is the script

Verify that the directory C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform exists

Script Name: Remove Folder

@echo off

rmdir /s /q “C:\Program Files\Common Files\Microsoft Shared \OfficeSoftwareProtectionPlatform”


Directory DOES exist: C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform
Launched Process: kace5334.bat

Checking if directory exists: C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform
Launching program: 'C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\229\kace5334.bat' '' wait='false'

4 Comments   [ + ] Show comments


  • Rmdir will only remove empty directories - is the directory empty?
  • no it isn't
  • How would I rename that folder then if you could please help with that
  • I think I have finally got it solved. Thank you dunnpy. You pointed me in the right direction.

    If anyone needs this in the future. Here is the bat script I used.

    @echo off

    rename "C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform" "OfficeSoftwareProtectionPlatform_old"

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


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