Skip to content

UsrMgr_ExistLocalUserAccount

Checks whether a user account exists on the local computer.

UsrMgr_ExistLocalUserAccount(sUserName) As Boolean

The name of the local user

Result will be stored in gbValue: True if the user exists, otherwise False.

If bStatus Then bStatus = UsrMgr_ExistLocalUserAccount("CapaInstaller")
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

UsrMgr_CreateLocalGroup UsrMgr_AddUserToLocalGroup Constants Package Property Variables