cls
asnp "*sh*"
Get-SPServiceInstance |?{$_.TypeName -like "App Management Service"} | Start-SPServiceInstance
Get-SPServiceInstance | ? {$_.TypeName -like "Microsoft
SharePoint Foundation Subscription Settings Service"} | Start-SPServiceInstance
#Provide the service account as per your configuration
$account=Get-SPManagedAccount -Identity CORP\Svc.AppsAccount
#configure Subscription Service Application for Sharepoint
$appPoolSubsvc=New-SPServiceApplicationPool -Name "SubscriptionServericeAppPool"
-Account $account
$appSubSvc=New-SPSubscriptionSettingsServiceApplication
-ApplicationPool $appPoolSubsvc
-Name "Subscription
Service Application" -DatabaseName SubscriptonServiceDB
$proxySubSvc=New-SPSubscriptionSettingsServiceApplicationProxy
-ServiceApplication $appSubSvc
Write-Host "Subscirption
Service Application Created"
$appPoolAppSvc=
New-SPServiceApplicationPool -Name "AppManagementServiceAppPook"
-Account $account
$appsMgmtSvc=
New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc
-Name "Apps
Management Service" -DatabaseName "AppsDb"
$proxyAppSvc=New-SPAppManagementServiceApplicationProxy
-ServiceApplication $appsMgmtSvc
Write-Host "Apps
Management Service Application Created"
No comments:
Post a Comment