Summary:

Last few weeks have been immensely busy for our VDI teams across the globe trying to help out customers adopt into solutions for remote access, a major one among this being the Windows Virtual Desktop!!! . As part of this, one of the biggest problems for customers is to manage the Windows Virtual Desktop. Majority of the customers either have Citrix administrators or Windows Administrators supporting their Citrix / any other Remote access infrastructure.

So, we thought, why not build a quick healthcheck dashboard using powershell.. and the result is a powershell based healthcheck and / Or documentation dashboard. Customers may use this to perform their day to day checks before start of business to ensure the WVD availability. and at the same time be able to keep track of their inventory on WVD.

Pre-Requisites:

  • Access to Powershell with Administrator Privileges
  • Latest Powershell Version
  • Install the Microsoft RDS Powershell module to manage the WVD through powershell.
  • For Instructions on how to Install the RDS Powershell Module follow this Microsoft Link: Click Here

Script Details:

  • Captures Inventory for a Single WVD Tenant
  • Provides an HTML output
  • Gathers information such as:
    • Hostpool Details
    • AppGroup Details
    • Remote Desktop session Host availability and error tracking
  • Indicates issues / errors with RDSH with color coding.
  • Needs Azure AD Credentials of the Windows Virtual Desktop Owner ID to run the script.
  • We have not included a placeholder for Credentials, hence the script currently prompts for credentials. If you are planning to run this on your infrastructure regularly, you may want to securely pass the credentials to the script.

Script Sample Output:

Script Download Link:

If you wish to download the script: Download

Feel free to contribute / connect / modify the script as you wish. Don’t forget to comment if you like the script!

8 responses to “A simple Health-check / Inventory Dashboard for WVD”

  1. Jaydip Majumder Avatar
    Jaydip Majumder

    Great work dude. Loved your attention to the detail.

    1. The ITGuy Avatar
      The ITGuy

      Thanks for the feedback Jaydip!!

  2. Srini Avatar
    Srini

    Dear Sir, Thank you for creating the script and publishing it over the internet for the global use. I’ve executed the script in the environment and the following error has occurred while executing the script. Please advise, how to resolve.
    Get-RdsHostPool : Cannot convert ‘System.Object[]’ to the type ‘System.String’ required by parameter ‘TenantName’. Specified method is not supported.
    At C:\Script\wvdhc.ps1:340 char:48
    + $HostpoolDetails = Get-RdsHostPool -TenantName $Tenantname
    + ~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Get-RdsHostPool], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.RDInfra.RDPowershell.HostPool.GetRdsHostPool

  3. ketan Kamble Avatar
    ketan Kamble

    Do you have the same script for ARM model ?

    1. Surendra Dhondale Avatar

      Will write something up for it shortly 🙂 Been concentrating on Devops based delivery for WVD!

  4. […] on the feedback received on the previous Healthcheck / inventory dashboard Script . an updated script for the spring update of windows virtual desktop has been […]

  5. […] on the feedback received on the previous Healthcheck / inventory dashboard Script . an updated script for the spring update of windows virtual desktop has been […]

Leave a Reply

Subscribe to get the latest updates / posts:



Designed with WordPress

Discover more from V-Desktops

Subscribe now to keep reading and get access to the full archive.

Continue reading