Examples/Resources/SPAppStoreSettings/3-DisableAppStores.ps1
<#
.EXAMPLE This example shows how to configure the AppCatalog in the farm #> Configuration Example { param( [Parameter(Mandatory = $true)] [PSCredential] $SetupAccount ) Import-DscResource -ModuleName SharePointDsc node localhost { SPAppStoreSettings DisableAppStores { WebAppUrl = "https://sharepoint.contoso.com" AllowAppPurchases = $false AllowAppsForOffice = $false PsDscRunAsCredential = $SetupAccount } } } |