Show amount of AD Computers and Users with Orchestrator on webpage

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.

Show amount of AD Computers and Users with Orchestrator on webpage1

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.

Show amount of AD Computers and Users with Orchestrator on webpage2

As for the next activity “Write Web Page” some parameters have been added.

Show amount of AD Computers and Users with Orchestrator on webpage3

The template file “index_template.html” that have been added is seen below.

Show amount of AD Computers and Users with Orchestrator on webpage4

The result when running this Runbook and opening the index.html looks like this.

Show amount of AD Computers and Users with Orchestrator on webpage5

No comments yet.

Leave a Reply