You Will Need:
Mix it all together:
What I like to do is copy delprof2.exe to the Windows folder. Then you can run it directly from command prompt. However, I like to create a scheduled task to run it if any user logs on. You want to set “When running the task, use the following user account:” to Administrators. Run with highest privileges and run with the switch /q which means it will silently delete all profiles according to the criteria you specified. This should actually help out with security because if another user logs into the computer, it will run this utility which will delete your profile when they login. On top of this, you have a scheduled task set to run each day with Ccleaner which wipes free space at the end of your shift. Double bonus if it goes undetected.
/l List only, do not delete (what-if mode) /u Unattended (no confirmation) /q Quiet (no output and no confirmation) /p Prompt for confirmation before deleting each profile /r Delete local caches of roaming profiles only, not local profiles /c Delete on remote computer instead of local machine /d Delete only profiles not used in x days /ntuserini When determining profile age for /d, use the file NTUSER.INI instead of NTUSER.DAT for age calculation /ed Exclude profile directories whose name matches this pattern Wildcard characters * and ? can be used in the pattern May be used more than once and can be combined with /id /id Include only profile directories whose name matches this pattern Wildcard characters * and ? can be used in the pattern May be used more than once and can be combined with /ed /i Ignore errors, continue deleting
delprof2.exe -c:192.168.175.129 -p