Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $SPServiceAccount= ‚SP\sql_service‘
- $SPAppMngmtDBName = ‚SP_AppMngmt‘
- $SPSubscriptionDBName = ‚SP_SettingsService‘
- Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
- Get-SPServiceInstance | where{$_.GetType().Name -eq „AppManagementServiceInstance“ -or $_.GetType().Name -eq „SPSubscriptionSettingsServiceInstance“} | Start-SPServiceInstance
- $account = Get-SPManagedAccount $SPServiceAccount -ErrorAction Stop
- $appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account
- $appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp -DatabaseName $SPAppMngmtDBName
- $proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc
- $AppPool = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account
- $App = New-SPSubscriptionSettingsServiceApplication -ApplicationPool $appPool -Name SettingsServiceApp -DatabaseName $SPSubscriptionDBName
- $proxy = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $App
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement