Script repository
Cancel operation if Full Name is not unique
The script cancels the operation if another user with the same Full Name already exists in your Active Directory domain.
Updated on: Jan 18, 2026, Views: 4002
Cancel user creation if there are no available Microsoft 365 licenses
The script cancels creation of a new user if the number of available Microsoft 365 licenses in tenant associated with the user is below limit.
Updated on: Jan 18, 2026, Views: 3576
Generate a unique 6-digit value for AD property
The script generates a unique 6-digit value for the specified property.
Updated on: Jan 18, 2026, Views: 1686
Generate sequential property values
The script generates sequential property values consisting of a fixed textual part and a sequence number (e.g. IDDQD-001, IDDQD-002, IDDQD-003).
Updated on: Jan 18, 2026, Views: 4801
Remove spaces from property value and validate it against regular expression
The script remove spaces from property value and validate it against regular expression. If the validation fails, the operation is cancelled.
Updated on: Jan 18, 2026, Views: 4475