Windows 7 Forums


Reply
Thread Tools

Remove folder from all users profiles

 
 
blu944 blu944 is offline
New Member
Join Date: Nov 2011
Posts: 1
Thanked: 0
 
      11-09-2011
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.
 
Reply With Quote
 
 
 
 
TrainableMan TrainableMan is online now
^ The World's First ^
TrainableMan's Avatar
Join Date: May 2010
Location: PA, USA
Posts: 4,655
Thanked: 887
 
      11-10-2011
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.
 
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suddenly "This folder is empty" on sharing PC ?? G00k Networking 1 03-29-2011 03:29 AM
How to remove / delete network folder credentials in Windows 7 ceje Networking 1 02-07-2011 02:26 PM
Missing several folder under users folder qplo Windows 7 Support 0 07-01-2010 05:18 PM
Windows 7 for XP users - How to find your way around Nibiru2012 General Discussion 8 06-04-2010 03:23 PM
can't remove damaged dll in winsxs folder gerarddavvoni Windows 7 Support 2 01-23-2010 05:53 PM


All times are GMT +1. The time now is 03:48 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33