1 minute reading time (280 words)

Contact Adder - Part 2

This month we would like to present you the promised version 2 of ContactAdder. What the ContactAdder is all about, you can read in part 1.

In this release, we wanted to automate the execution of the script and simplify the installation and updates for our employees. We also wanted to extend logging to provide support in the event of an error.

Our solution
We solved the automatic execution via a Scheduled Task. This is created by our setup script and configured to run the script every day at 9am.
The setup script has additionally implemented an update routine to update the task when the ContactAdder script is changed or to reset it to the default values defined in the script. For installation (or an update) simply place both scripts in the same directory and start the setup script 😊.
The actual script was supplemented at the relevant places by logging code, which can be switched on or off via a variable ($debuggingon to $true or $false). The code creates a separate logfile for each run in a subfolder. To keep the number of logfiles to a minimum, only the most recent 5 logfiles plus the currently written logfile are kept (from ContactAdder as well as from SetupScript). The number of logfiles to be stored can be adjusted to your needs by the variable $keeplatestlogcount.

The script
You can find the script in our repository. It is licensed under the MIT license.

Again, we would like to thank some of the authors whose work and information we used during the development:

http://jamilpremji.com/post/157169397930/using-powershell-to-get-your-global-address-list [No longer available at the time of publication of the blog]



Troubleshooting Azure - Resource Quotas
Contact Adder - Teil2


No comments made yet. Be the first to submit a comment
Thursday, 17 October 2019