Below is the VBS script for listing all the servers who have IIS roles installed (Server names are from a text file)
The script is
Save the code as .vbs file. Script is also attached in this post.
Create a Text file with name Computer.txt and Enter the server names inside. Example:
Open the command prompt and run the following command:
The result will be as example:
The script is Applicable for Server 2003/2008/2012 including R2..
Thank you 🙂 download the attached script from link: Find IIS roles on all servers