Instantly share code, notes, and snippets.

Embed
What would you like to do?
$cred = Get-Credential
Connect-SPOService -Url "https://<tenant>-admin.sharepoint.com" -Credential $cred
# get a reference to the site collection where the
# site collection app catalog should be created
$site = Get-SPOSite https://contoso.sharepoint.com/sites/marketing
# create site collection app catalog
Add-SPOSiteCollectionAppCatalog -Site $site
# disable the site collection app catalog
Remove-SPOSiteCollectionAppCatalog -Site $site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment