I developing a simple Windows Forms Application that using a PowerShell script to add WSP solutions to multiple SharePoint front ends automatically.
I am not a SharePoint developer but it's required task from me, i worked also on SharePoint 2010
PowerShell script take one parameter $webUrl so i need to foreach on every Front End and get it's Web Application URL then pass it to script.
The above is too easy, i done all required steps except that i didn't know how to get Web Application URL from only the front end server name.
i think i want to check if this front end server have SharePoint installed in it, then i get the Web Application
I know that SharePoint can have multiple web application URL configured on IIS.
I think the result should be some thing like that: