Documentation

pascom Cloud Phone System Documentation and Release Notes

Update automation with PowerShell-Script

In this HowTo, we will show you how to automate the update process of the pascom app with a PowerShell script. The PowerShell script can be executed manually by simply downloading and starting it via PowerShell, or automatically using the Windows Task Scheduler. Automation saves you time and ensures that your pascom apps are always up to date.

Download

Get the PowerShell-Script

Save the PowerShell script in a location where you can easily access the path to the file later.

Unblock File

If you have loaded the script onto the terminal server via a web browser, you may have to remove the Zone.Identifier before you can execute the script”.

Unblock-File -Path .\autoUpdate.ps1

Permissions

The script should be executed with the same permissions that were used during the original installation of the pascom app. Administrator rights are therefore required for the recommended installation method on a terminal server.

Manual update of the pascom apps with the PowerShell script

  • Open PowerShell

  • Press Win + R to open the Run dialogue box. Type powershell and press Enter.

  • Navigate to the directory where the script is located.

Example:

cd C:\path\to\your\script

  • Now that you are in the directory where the PowerShell script is located, you can simply run it.
  • Enter the name of the .ps1 file to execute the script.

Example:

.\autoUpdate.ps1

  • Done. The update process starts

Automatic update of the pascom apps with the Windows Scheduler

  • Open the Windows Task Scheduler

  • Press Win + R to open the Run dialogue box. Type taskschd.msc and press Enter.

  • Create a new “basic task”-

  • Define a time at which the task should be triggered.

  • Configure a new “Action”.

  • The action should open a application - “Start a program”.


Windows Scheduler create action


  • PowerShell must now be opened. Enter the command powershell in the “Program/Script” field.
  • You also need an argument/parameter. Enter the path to your .ps1 file here.

Example:

-File C:\path\to\your\script\autoUpdate.ps1

Windows Scheduler configure action


  • Done. You can perform a manual test run of the task to test whether the pascom app is updated correctly.