Skip to content

UsrMgr_DisableLocalUserAccount

Disables a local user account. The account remains on the computer, but the user can’t sign in. The function fails if the user doesn’t exist.

UsrMgr_DisableLocalUserAccount(sUserName) As Boolean

The name of the user

If bStatus Then bStatus = UsrMgr_DisableLocalUserAccount("Username")

Scripting Guidelines

UsrMgr_EnableLocalUserAccount UsrMgr_CreateLocalGroup UsrMgr_AddUserToLocalGroup UsrMgr_SetLocalUserProperties Constants Package Property Variables