best business builder

PowerShell Admin Tasks: Real-Time IT Dashboard

Creating a real-time IT dashboard is essential for IT professionals for managing their environments and to be proactive.

Every sysadmin should be able to monitor their environment and should send reports or dashboards to the top management on a regular basis. Of course, you can build your own dashboards using a monitoring tool, but you don’t always have a PowerShell module to automate the management of these dashboards. Otherwise, you could also use other projects, for instance, to create a dashboard based on Power BI, but some prerequisites must be validated before using it and, unfortunately, it is not straightforward for beginners.

One of the first things I always think about before using a new product is that there must be a way to control this with PowerShell. This is not a prerequisite, but it could save me a lot of time in the future. Creating a dashboard should be also done using PowerShell to dynamically create a dashboard based on some criteria. For instance, you might want to create a dashboard every morning at 07:00 AM that will list all your machines that are not up and running. Or you might want to create a dashboard that will:

  • List the top 10 machines for whom the CPU is greater than 90%,
  • List toner levels for printers
  • And anything else you can think of…

Of course, you can do this with a monitoring tool, but are you able to automate the whole creation process? Wouldn’t it be interesting to be able to launch a simple PowerShell script with several arguments and create a new dashboard on demand? In this case, every admin would be able to create a dashboard even if they don’t have PowerShell skills.

I will try to convince you without further explanation. So please run the following PowerShell commands as an administrator:

The Install-Script cmdlet acquires the script from the PowerShell Gallery, verifies that the script is a valid PowerShell script, and copies the script file to the default installation location, which is: C:\Program Files\WindowsPowerShell\Scripts.

Now, open your favorite web browser, and type the following URL: http://localhost:10000. That’s all; your first PowerShell Dashboard is up and running! Nothing more to do. Below is the output on my Windows 10 laptop:

If you launch this dashboard, you will notice that on the right side of the dashboard, the charts should auto-refresh every 5 seconds. This dashboard has been generated using PowerShell Universal Dashboard.


Got a project that needs expert IT support?

From Linux and Microsoft Server to VMware, networking, and more, our team at CR Tech is here to help.

Get personalized support today and ensure your systems are running at peak performance or make sure that your project turns out to be a successful one!

CONTACT US NOW
best vpn deal