delete the files in the user profile roaming
I have a batch file for installing Exceed package ver 15. Installation is going fine. Its installing a folder called kerberos in user profile roaming path and also at the machine level. Now i want to delete the folder at the user level. Can you kindly let me know how to do that ?
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Nico_K
4 years ago
since the KACE agent is running as SYSTEM it is a little tricky.
You can use a script like:
@echo off
cd /d "c:\users"
for /d %%a in (*) do rd /s /q "c:\users\%%a\desktop\123" >nul 2>&1
which deletes the file 123 from the desktop folders of all avaiable users. (e.g. c:\users\user1\desktop\123 and c:\users\admin94\desktop\123)