/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: Nico_K 4 years ago
Red Belt
1

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)

 
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