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

DeleteCompany.ps1

VariableDescription
$CompanyCodeThe unique code for the new company you just created
$CompanyNameThe company name of the company you just created
$CompanyDistinguishedNameThe distinguished name of the company in Active Directory
$ReferenceThe value from the reference field
[CmdletBinding()]
Param (
    [Parameter(Mandatory=$true)]
    [string]$CompanyCode,

    [Parameter(Mandatory=$false)]
    [string]$CompanyName,

    [Parameter(Mandatory=$false)]
    [string]$CompanyDistinguishedName,

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

How can we help?