This is a simple example on how you can use the “Write Web Page” to show how many computers and users there are in your Active Directory. I used a similar Runbook during a migration project when everybody wanted to get status of the migration. The example is based on three activities and will count computers and users and then add the number to a web page.
The Runbook looks like this.
The activity “Run .Net Script” is using commands to count computers and users in Active Directory. The activity then publishes the variables “comptot” and “usertot” to the databus. In the example below I am using the PowerShell module from Active Directory.
As for the next activity “Write Web Page” some parameters have been added.
The template file “index_template.html” that have been added is seen below.
The result when running this Runbook and opening the index.html looks like this.