/build/static/layout/Breadcrumb_cap_w.png

Trying to remove a folder using KACE

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”


Result

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? - dunnpy 8 years ago
  • no it isn't - pmcasey 8 years ago
  • How would I rename that folder then if you could please help with that - pmcasey 8 years ago
  • 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" - pmcasey 8 years ago

Answers (0)

Be the first to answer this question

 
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