This sample PowerShell script is an all in one script that will download all the subscription updates for all of your company subscriptions onto your machine. The following parameters will need to be set for it to work for you.


You need to specify your API_TOKEN in order to gain permission to your subscriptions

$global:api_token = "API_TOKEN" # Update to match API Token from Altalis
$global:temp_path = $env:Temp # Update to download the files to a different location



By default the script will try and get updates for one month prior to the date the script is run. If you would like to customize that date simply provide the date in a date string like below. Selecting a date of 1900-01-01 will get the full data with all changes.

GetUpdates '2017-01-01' 


If you would like to get all updates, use the date 1900-01-01. To use this PowerShell script you may need to enable your computer to run PowerShell scripts.


Troubleshooting


Special thanks to those who helped developing this example:


- Darcy Dechene of Silvacom Ltd.

- Andrew Porohowski of FortisAlberta