I have a terminal server running Windows 2008 R2 with about 100 users. On each user's desktop, there is a folder. I need to schedule a weekly batch file to delete the files inside of this folder for all users.
For one user, I can use this simple batch file:
Del *.* /Q
Is it possible to delete the contents of the "ToBeDeleted" folder for all users - all folders that are in C:\Users?