Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created October 28, 2018 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/620bec2b03589d4cb95d46f2a41465cd to your computer and use it in GitHub Desktop.
Save AsishP/620bec2b03589d4cb95d46f2a41465cd to your computer and use it in GitHub Desktop.
$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