Remove folder from all users profiles

Joined
Nov 9, 2011
Messages
1
Reaction score
0
What script do I use to remove a folder from all of the user profiles.

I have tried rd /s /q C:\Users\%username%\AppData\Local\GFI and this works on the computer, but only for the user who is logged on. I need a script that will remove this folder for all users.

I will be using a deployment toll to run the script.
 

TrainableMan

^ The World's First ^
Moderator
Joined
May 10, 2010
Messages
9,353
Reaction score
1,587
Since username varies and each machine could have many you will likely have to write a script to get the directory of C:\Users and then loop through that list running the remove directory for each entry from the list.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top