Display Available Web Applications on the Farm
Scenario/Problem: You need to obtain a web application reference and therefore need a listing of available web applications.
Solution: Use the Get-SPWebApplication
cmdlet without any parameters to retrieve all available web applications.
To obtain a web application reference object, you need to find the identity of the web application. Using the Get-SPWebApplication
by itself (see Listing 5.1) displays all available web applications, as shown in Figure 5.1.
Get-SPWebApplication
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.