Not so long ago, I upgraded an RDS farm from Windows Server 2012 R2 to Windows Server 2016, where the main task was to reconfigure the roaming profile folders due to the name change from v2 to v6. After the transfer, the total number of folders was over 6000, they already took up decent disk space. There was an idea to remove unnecessary ones according to the criteria,
- Active Directory user account disabled more than 60 days ago.
- Move a folder over the network to an archive server.
- Move no more than 25 folders per day, so that in case of something there is not a large number of applications.
- Keep all rights to folders and subfolders.
- Place the script in scheduled tasks and run as scheduled,