Criar Subscription Service Application no SharePoint 2013

Para criar manualmente a Subscription Service Application, utilize o script abaixo no PowerShell.

$serviceTypeName = “Microsoft SharePoint Foundation Subscription Settings Service”
$accountName = “mydomain\sharepoint.service”
$appPool = “SharePoint Service Applications”
$serviceName = “Subscription Settings Service”
$serviceDB = “Subscription_Settings_Service”
$service = Get-SPServiceInstance | where { $_.TypeName -eq $serviceTypeName }
Start-SPServiceInstance $service
Write-Host “Service instance started.”
# Gets the name of the managed account and sets it to the variable $account for later use.
$account = Get-SPManagedAccount $accountName
$appPoolSubSvc = Get-SPServiceApplicationPool $appPool
if ($appPoolSubSvc -eq $null)
# Creates an application pool for the Subscription Settings service application.
# Uses a managed account as the security account for the application pool.
# Stores the application pool as a variable for later use.
$appPoolSubSvc = New-SPServiceApplicationPool -Name $appPool -Account $account
Write-Host “Have the application pool…”
# Creates the Subscription Settings service application, using the variable to associate it with the application pool that was created earlier.
# Stores the new service application as a variable for later use.
$appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name $serviceName –DatabaseName $serviceDB
Write-Host “Service application created…”
# Creates a proxy for the Subscription Settings service application.
$proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc
Write-Host “Service application proxy created…”
Write-Host -ForegroundColor green “Done.”


Diego Pereira

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog do Douglas Romão

MVP Office Apps and Services | Modern Workplace and Business Applications Expert

Blog do Project

Tudo que você queria saber sobre Microsoft Project


by Allan Rocha

Modern Work Management - Project and the Power Platform blog

Microsoft Project, Project Online, Project for the Web and the Power Platform

%d bloggers like this: