UsrMgr_ExistLocalUserAccount
Description
Section titled “Description”Checks whether a user account exists on the local computer.
Syntax
Section titled “Syntax”UsrMgr_ExistLocalUserAccount(sUserName) As Boolean
Parameters
Section titled “Parameters”sUserName (String)
Section titled “sUserName (String)”The name of the local user
Return value
Section titled “Return value”Result will be stored in gbValue: True if the user exists, otherwise False.
Example
Section titled “Example”If bStatus Then bStatus = UsrMgr_ExistLocalUserAccount("CapaInstaller")If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)Related functions
Section titled “Related functions”UsrMgr_CreateLocalGroup UsrMgr_AddUserToLocalGroup Constants Package Property Variables