UsrMgr_DisableLocalUserAccount
Description
Disables a local user account. The account resides, but the user cannot logon
Syntax
UsrMgr_DisableLocalUserAccount(sUserName) As Boolean
Parameters
sUserName (String)
The name of the user
Example
VBScript
If bStatus Then bStatus = UsrMgr_DisableLocalUserAccount("Username")
Related functions
UsrMgr_EnableLocalUserAccount UsrMgr_CreateLocalGroup UsrMgr_AddUserToLocalGroup UsrMgr_SetLocalUserProperties