/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


delete the files in the user profile roaming

06/27/2020 139 views

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

Comments


All Answers

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)

Answered 06/28/2020 by: Nico_K
Red Belt

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:

Share

 
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