Issue
Too many Windows User Accounts on devices has been shown to cause Error 0x7885 to occur when SES tries to add Key Files to such an endpoint Windows device.
Solution/aid:
Download and use delprof2 to cleanup old profiles on remote pcs (it deletes the required profilelist key and old user folders)
Example: delprof2.exe /d:90 /c:E01RADD4049 /ed:administrator /ed:pcsetupw7 /ed:default /ed:public /ed:admin
In this example:
/d:90 means delete any accounts not used in 90 days or longer
/c:E01RADD4049 is the device name
/ed: followed by a user name indicates that user is NOT to be included in the list of user accounts to be removed.
This process can be manipulated in a batch file, and can be run if the running user has admin rights on the target devices
Naturally, after completing this at the endpoint device level, it will be necessary to remove the key files for these users from within the SecureDoc Enterprise Server console.
For further information:
https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/
http://whatkatdid.com/tag/script/
Sample Script:
In this example, all the computer names have been placed in text file pclist.txt.
All accounts that are over 90 days old are going to be removed, except those that are prefixed with /ed: in the command line - those will be skipped/excluded from being removed.
-SCRIPT SAMPLE--------------------------------------------------------------------------------------
@echo off
del /q log.txt 2>nul
del /q errorlog.txt 2>nul
for /f %%i in (pclist.txt) do call :proc %%i
goto :end
:proc
echo processing device %1 …
ping -n 2 %1 >nul 2>nul
if %ERRORLEVEL% gtr 0 (
echo -offline
echo %1 -offline >>errorlog.txt
goto :EOF
)
echo Deleting users on device %1
echo Deleting users on device %1>>log.txt
DelProf2.exe /d:90 -c:%1 -q /ed:administrator /ed:pcsetupw7 /ed:default /ed:public /ed:admin
echo Device %1 User Clean-up Complete
echo Device %1 User Clean-up Complete>>log.txt
goto :EOF
:end
-END OF SCRIPT SAMPLE--------------------------------------------------------------------------------
1704
- Updated on Feb 6, 2026
- 1 minute(s) read
- VN
Was this article helpful?