Good Afternoon,
Is there a way to retrieve the names of all iis farm web servers, from a hosted site's web app in the farm using C# ?.
Particularly, a IIS ARR farm.
Hi,
You could try to use the below code to get the collection of the server farm:
ConfigurationElementCollection webFarmsCollection = webFarmsSection.GetCollection();
and
Get-Server
PowerShell command.
https://docs.microsoft.com/en-us/iis/web-hosting/microsoft-web-farm-framework-20-for-iis-7/web-farm-framework-20-for-iis-cmdlets-for-windows-powershell