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'
Answers (0)
Be the first to answer this question
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