A little script I schedule for servers using Georgia UTS.
Below I use Robocopy to move files older than 3 days, to avoid anyone currently logged in. For me I expect users to be logged on for no more than a day, active user files should therefore be untouched.
echo This Batch Files removes .regtrans-ms and .TM.blf which can take up space if unmaintained
echo Change to C drive to ensure correct
echo Create temporary directory
echo Copy temporary files into temp directory
ROBOCOPY C:\Users\ C:\deltempfiles\ *.regtrans-ms /move /minage:3 /S /R:1 /W:1 /XJ
ROBOCOPY C:\Users\ C:\deltempfiles\ *.TM.blf /move /minage:3 /S /R:1 /W:1 /XJ
rmdir C:\deltempfiles\ /S /Q
Georgia Telnet can restrict the number of users that connect to Telnet or SSH.
I am lazy so I tend to generate a list based off our user logon scripts folders, however I do of course take a backup and test it afterwards.
echo Change to the drive where your Georgia logon scripts are located
echo Change to the folder to where your Georgia logon scripts are located
echo Get the dir command to write out a simple list of directories into a file called dir.txt
dir /B /A:D >dir.txt
echo add a 1 to end of each row and copy the list into the file GS_L_User.txt located normally a directory above the user script folders.
echo It takes place straight away
Georgia Telnet Manual and Logon Features