Skip to content

$cs.UsrMgr\_ExistLocalUserAccount

$cs.UsrMgr_ExistLocalUserAccount(string userName)

userName

Name of user to check if exist.

Terminal window
if ($cs.UsrMgr_ExistLocalUserAccount('capauser'){
$cs.UsrMgr_ChangePassword('capauser', 'SecretPassw0rd')
}

returns boolean