Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 7025

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 2162

Deprecated: Hook imagify_allow_picture_tags_for_webp is deprecated since version 2.2! Use imagify_allow_picture_tags_for_nextgen instead. in /www/collab365_296/public/wp-includes/functions.php on line 5758
How to find SharePoint 2013 App Info Using PowerShell - Collab365
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Warning: Undefined array key "url" in /www/collab365_296/public/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/smart-site/classes/class-tvd-smart-shortcodes.php on line 85

2013-11-16

I’ve been playing a lot with PowerShell and SharePoint 2013 lately, and by a lot, I mean A LOT! One of the new additions with SharePoint 2013, is the set of new cmdlets that allow Sharepoint administrators to manage how apps are deployed in their environment. the new App model in Sharepoint 2013 is great, but it can easily create chaos if apps are not properly managed. One of the big problem I foresee for any organization that gets in the business of heavy customization using apps is the fact that there are no ways for them to easily identify what sites have a specific app installed on, and to determine what version of the ap is installed on them. Remember that with SharePoint 2013, you can have various versions of the same apps running in different sites.

For all of you out there that are desperate to find a solution to the scenario describe above, fear not! I have written a nice litle PowerShell script that will allow you to quickly identify on what site an app is installed, and what version of it is installed.

Add-PsSnapin Microsoft.SharePoint.PowerShell

$appTitle = Read-Host "What is your App's title?"

$rootUrl = Read-Host "What is your Web Application's Root Url?"

$webApp = Get-SPWebApplication $rootUrl

foreach($site in $webApp.Sites)

{

    foreach($web in $site.AllWebs)

    {

        $appInstance = Get-SPAppInstance -Web $web.Url | Where{$_.Title -eq $appTitle}

        if($appInstance -ne $null)

        {

            Write-Host $web.Url -BackgroundColor Green

            Write-Host $appInstance.App.VersionString -BackgroundColor Cyan

        }

    }

}

 

(Visited 642 times, 1 visits today)

About the author 

Nik Charlebois

Summit Bundle

Get 200+ hours of Microsoft 365 Training for 27$!

Master Office 365, Power Platform & SharePoint & Teams With 200+ Hours Of Training Videos and 108 Ebooks in the Collab365 Academy. This offer is insane and is only available for a limited period.