Page tree
Skip to end of metadata
Go to start of metadata

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")

Scripting Guidelines

 

Related functions

UsrMgr_EnableLocalUserAccount UsrMgr_CreateLocalGroup UsrMgr_AddUserToLocalGroup UsrMgr_SetLocalUserProperties

  • No labels