I have a network share on a Windows Server 2012 machine that is used to store all the user profile files (My Documents, Desktop, etc).
There are hundreds of old users I need to get rid of and I am going through them all one by one... first making the administrator the owner of all of the files for one user... then giving full control to all that user's files to the administrator... then deleting that user's files... then going to the next user.
This will take days.
There are many valid/current user files which I do not want to become the owner of or delete in this same directory also.
Is there any less time consuming way to delete specific folders in this network share?
Some sort of script that I can enter in all the old users and just let it do its thing for a few hours?