JCL Help:DeleteLocalAccount
JCL Help: DeleteLocalAccount Function
Search in JCL Help
Search in all projects
Summary
Deletes a user account from the local Windows NT machine.
Pascal
function DeleteLocalAccount(Username: string): Boolean;
Parameters
Parameters | Description |
Username: string | Specifies the name of the user account. |
Return Value
If the function succeeds it returns True, otherwise it returns False.
Description
DeleteAccount permanently removes the given user account from the local account database on a Windows NT machine.
See Also
DeleteAccount CreateLocalAccount CreateAccount
About
Unit
Donator
Peter Friese
Notes
If the function returns False, the user can retrieve extended error information by calling RaiseLastOSException. If you want to delete a user account from the domain account database, you should keep in mind to supply the name of the primary domain controller (PDC) in the parameter Servername. If the user name is not found in the user account database specified, it will fail.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page