Variable | Description |
---|
$CompanyCode | The unique code for the new company you just created |
$CompanyName | The company name of the company you just created |
$CompanyDistinguishedName | The distinguished name of the company in Active Directory |
$Reference | The value from the reference field |
$UserPrincipalName | The new user’s UserPrincipalName |
$SamAccountName | The new user’s sAMAccountName |
$UserDistinguishedName | The new user’s distinguished name |
$FirstName | The new user’s first name |
$LastName | The new user’s last name |
$DisplayName | The new user’s display name |
$Password | The new user’s password |
[CmdletBinding()]
Param (
[Parameter(Mandatory=$true)]
[string]$CompanyCode,
[Parameter(Mandatory=$false)]
[string]$CompanyName,
[Parameter(Mandatory=$false)]
[string]$CompanyDistinguishedName,
[Parameter(Mandatory=$false)]
[string]$Reference,
[Parameter(Mandatory=$true)]
[string]$UserPrincipalName,
[Parameter(Mandatory=$true)]
[string]$SamAccountName,
[Parameter(Mandatory=$false)]
[string]$UserDistinguishedName,
[Parameter(Mandatory=$false)]
[string]$FirstName,
[Parameter(Mandatory=$false)]
[string]$LastName,
[Parameter(Mandatory=$false)]
[string]$DisplayName,
[Parameter(Mandatory=$false)]
[System.Management.Automation.PSCredential]$Password
)
Was this article helpful to you?
Yes
No