I am trying to delete NT SAM user information from IMail using a batch file.
I am able to delete the NT account, the user mail directory and the users
section from the registry.

Some of the user settings seem to remain if I remove a user and add him
back. In particular organization and users first name. Are there any other
user specific settings hidden in the registry or directories? I am able to
delete the NT account, the user mail directory and the users section from
the registry.

REM Delete Account %1
NET USER %1 /DELETE /DOMAIN

REM Delete Mail Directory
ECHO Y | RMDIR /S \\%COMPUTERNAME%\E$\IMAIL\USERS\%1

REM Use reg.exe (from resource kit) to delete user settings from registry
ECHO Y | REG DELETE
HKLM\SOFTWARE\Ipswitch\IMail\Domains\%EMAILDOMAIN%\Users\%1 \\%COMPUTERNAME%

These all work, but user settings under general persist after deleting the
user and adding him back.
Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

Reply via email to