1. Home
  2. Docs
  3. Custom Powershell Scripts
  4. How To

How To

CloudPanel currently has five actions that are available to execute a custom powershell script after:

  • Adding a new company (AddCompany.ps1)
  • Updating a company (UpdateCompany.ps1)
  • Deleting a company (DeleteCompany.ps1)
  • Adding a new user (AddUser.ps1)
  • Deleting a user (DeleteUser.ps1)

The following parameters are available but some may not be available for all actions:

  • CompanyCode
  • CompanyName
  • CompanyDistinguishedName
  • Reference
  • DomainName
  • UserPrincipalName
  • SamAccountName
  • UserDistinguishedName

Simply add the powershell scripts you want to execute. If the file doesn’t exist then it won’t try to execute a powershell script after the action.

Was this article helpful to you? Yes No

How can we help?