How to retrieve all Apps installed on a SharePoint 2013 web application through Powershell
7 Jul 2014
Once you have enabled App support in your SharePoint 2013 farm and once you have decided to use this model both for the development of applications within the company and for taking advantaging of applications already in the store, you will find that you now have a new task: keeping an eye on your farm from the point of view of use and maintenance related to the Apps.
Because an App, once it’s downloaded from the store or once it’s installed within its App Catalog, can be used anywhere in our structure of site collection, sites and subsites. So it’s very easy to lose track of which and how many Apps are installed and used by our users.
I’ll leave you with a very useful PowerShell script that you’ll need to retrieve a complete list of all the Apps that are installed within a particular SharePoint 2013 WebApplication.
$webApp = Get-SPWebApplication "http://sp2013"
foreach($site in $webApp.Sites)
Write-Host $web.Url -BackgroundColor DarkGreen
foreach($web in $site.AllWebs)
$appInstance = Get-SPAppInstance -Web $web.Url | select Title,Appwebfullurl,Id
if($appInstance -ne $null)
$appInfo = $appInstance.Title + " - " + $appInstance.Appwebfullurl
I hope it will be useful for you.