Microsoft KB Archive/60616

= Errors when You Delete Your Account with NetUserDel =

Article ID: 60616

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft LAN Manager 2.0 Standard Edition
 * Microsoft LAN Manager 2.1 Standard Edition
 * Microsoft LAN Manager 2.1a
 * Microsoft LAN Manager 2.2 Standard Edition

-



This article was previously published under Q60616



SUMMARY
It is possible to delete your own user account with the NetUserDel API, if you are logged on with administrative privilege. The API will delete the account but returns errors. These errors differ, depending on whether you are accessing the server locally or remotely.

On a local server, NetUserDel returns error code 5, &quot;access denied,&quot; as NetUserDel attempts to call NetSessionEnum and NetSessionDel.

On a remote computer, NetUserDel returns ERROR_VC_DISCONNECTED (240).

This is expected behavior, and will not be changed.

Additional query words: 2.00 2.10 2.10a 2.20 prodlm

Keywords: KB60616

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.