|
If [Not] UserCanChangePassword Then If [Not] UserCanChangePassword <UserName> Then | Tests if specified Active Directory user can change password. Domain is by default the domain of the logged on user, to specify another domain, use <Domain>\<UserName>.
Example: If UserCanChangePassword Then |
|
If [Not] UserEnabled <UserName> Then | Tests if specified Active Directory user account is enabled. Domain is by default the domain of the logged on user, to specify another domain, use <Domain>\<UserName>.
Example: If UserEnabled AcmeUser Then |
|
If [Not] UserExists <UserName> Then | Tests if specified Active Directory user account exists. Domain is by default the domain of the logged on user, to specify another domain, use <Domain>\<UserName>.
Example: If UserExists AcmeUser Then |
|
If [Not] UserExpiresSoon Then If [Not] UserExpiresSoon <Days> Then If [Not] UserExpiresSoon <Days>, <UserName> Then | Tests if specified Active Directory user account expires within the next 'Days' number of days. If no 'Days' is specified, 7 days is assumed. Domain is by default the domain of the logged on user, to specify another domain, use <Domain>\<UserName>.
Example: If UserExpiresSoon Then ShowMessage "Your account will expire with a week. Please contact your system administrator, if you need an extension." |
|
If [Not] UserHasPasswordExpiry Then If [Not] UserHasPasswordExpiry <UserName> Then | Tests if specified Active Directory user's password can expire. Domain is by default the domain of the logged on user, to specify another domain, use <Domain>\<UserName>.
Example: If UserHasPasswordExpiry Then |
|
If [Not] UserIsAdmin Then | Tests if current user is a domain administrator. Use UserIsLocalAdmin to test for local administrator.
Example: If UserIsAdmin Then |
|
If [Not] UserIsInDomain Then | Tests if the current user is a domain user.
Example: If UserIsInDomain Then |
|
If [Not] UserIsLocalAdmin Then If [Not] UserIsLocalAdmin <UserName> Then | Tests if current user is local administrator. Use UserIsAdmin to test for domain administrator. If no user is specified, the currently logged on user is assumed. If domain is different than the current users' domain, specify user as <Domain>\<UserName>.
Example: If UserIsLocalAdmin Then |
|
If [Not] UserMustChangePassword Then If [Not] UserMustChangePassword <UserName> Then | Tests if specified Active Directory user is forced to change password at next logon. Domain is by default the domain of the logged on user, to specify another domain, use <Domain>\<UserName>.
Example: If UserMustChangePassword Then |
|
If [Not] UserMustChangePasswordSoon Then If [Not] UserMustChangePasswordSoon <Days> Then If [Not] UserMustChangePasswordSoon <Days>, <UserName> Then | Tests if specified Active Directory user is forced to change password within the next 'Days' number of days. If no 'Days' is specified, 7 days is assumed. Useful to detect when the user password will expire soon. Domain is by default the domain of the logged on user, to specify another domain, use <Domain>\<UserName>.
Example: If UserMustChangePasswordSoon Then ShowMessage "Your password will expire with a week. Please change your password or log out within the next week." |
|
If [Not] UserProfileIsRoaming Then If [Not] UserProfileIsRoaming <UserName> Then | Tests if the users is roaming its profile. If no username is specified, current user is assumed. Domain is by default the domain of the logged on user, to specify another domain, use <Domain>\<UserName>.
Example: If UserProfileIsRoaming Then |
|