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