Fix Pax8 Country 2
This commit is contained in:
16
main.ps1
16
main.ps1
@@ -203,7 +203,6 @@ $SubmitBtn.Add_Click({
|
||||
$city = $CityBox.Text.Trim()
|
||||
$province = $ProvinceBox.Text.Trim()
|
||||
$postalCode = $PostalCodeBox.Text.Trim()
|
||||
$country = $CountryBox.Text.Trim()
|
||||
|
||||
$autotaskChecked = $AutotaskBox.IsChecked
|
||||
$pax8Checked = $Pax8Box.IsChecked
|
||||
@@ -241,6 +240,7 @@ $SubmitBtn.Add_Click({
|
||||
|
||||
try {
|
||||
if ($AutotaskBox.IsChecked) {
|
||||
Write-Host "[INFO] Provisioning Autotask..."
|
||||
Invoke-AutotaskProvision -CompanyName $company `
|
||||
-PhoneNumber $phone `
|
||||
-Website $WebsiteBox.Text.Trim() `
|
||||
@@ -252,6 +252,20 @@ $SubmitBtn.Add_Click({
|
||||
-Credentials $script:toolCredentials
|
||||
}
|
||||
|
||||
if ($Pax8Box.IsChecked) {
|
||||
Write-Host "[INFO] Provisioning Pax8..."
|
||||
Invoke-Pax8Provision -CompanyName $company `
|
||||
-Phone $phone `
|
||||
-Website $website `
|
||||
-Street $street `
|
||||
-City $city `
|
||||
-Province $province `
|
||||
-PostalCode $postalCode `
|
||||
-Country "Canada" `
|
||||
-Credentials $script:toolCredentials
|
||||
}
|
||||
|
||||
|
||||
$StatusBlock.Text = "Provisioning completed successfully."
|
||||
Write-Host "[SUCCESS] Provisioning complete."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user