Skip to content

Instantly share code, notes, and snippets.

@OlafD
Last active October 5, 2018 07:34
Show Gist options
  • Save OlafD/75dedc9820076f7acf2a1cd331c80ca8 to your computer and use it in GitHub Desktop.
Save OlafD/75dedc9820076f7acf2a1cd331c80ca8 to your computer and use it in GitHub Desktop.
Show all installed apps from the app catalog for a SharePoint site. The script just provides a simple output of the AppTile class. The script needs the PowerShell PnP extensions installed.
param (
[string]$Url,
$Credentials
)
if ($Credentials -eq $null)
{
$Credentials = Get-Credential
}
Connect-PnPOnline -Url $Url -Credentials $Credentials
$web = Get-PnPWeb -Includes AppTiles
$appTiles = $web.AppTiles
Invoke-PnPQuery
foreach ($appTile in $appTiles)
{
$appTitle = $appTile.AppTitle
$appType = $appTile.AppType
$appStatus = $appTile.AppStatus
$appSource = $appTile.AppSource
$isCorporateCatalogSite = $appTile.IsCorporateCatalogSite
if ($appType -eq "Instance")
{
$appTile
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment