1. Home
  2. Docs
  3. Custom Powershell Scripts
  4. Scripts
  5. DeleteUser.ps1

DeleteUser.ps1

VariableDescription
$CompanyCodeThe unique code for the new company you just created
$UserPrincipalNameThe new user’s UserPrincipalName
$SamAccountNameThe new user’s sAMAccountName
$UserDistinguishedNameThe new user’s distinguished name
[CmdletBinding()]
Param (
    [Parameter(Mandatory=$true)]
    [string]$CompanyCode,

    [Parameter(Mandatory=$true)]
    [string]$UserPrincipalName,

    [Parameter(Mandatory=$true)]
    [string]$SamAccountName,

    [Parameter(Mandatory=$false)]
    [string]$UserDistinguishedName
)
Was this article helpful to you? Yes No

How can we help?