Skip to content

UsrMgr\_EnableLocalUserAccount

Re-enables a local user account that has been locked

UsrMgr_EnableLocalUserAccount(sUserName) As Boolean

sUserName (String)

The name of the user

VBScript

If bStatus Then bStatus = UsrMgr_EnableLocalUserAccount("Username")

Scripting Guidelines

UsrMgr_DisableLocalUserAccount UsrMgr_CreateLocalGroup UsrMgr_AddUserToLocalGroup UsrMgr_SetLocalUserProperties