SharePoint Configuring WAS
PowerShell script to create the Word Automation Services service application in SharePoint 2010.
Use this PowerShell script to configure Word Automation Services (WAS). It reuses an existing application pool if one is found, and creates one otherwise. Replace the placeholders with your own values.
powershell
$serviceName = "Word Automation Service"
$appPool = $null
Add-PSSnapin Microsoft.SharePoint.PowerShell
$appPool = Get-SPIisWebServiceApplicationPool -Identity <appPoolName>
if ($appPool -eq $null)
{
$appPool = New-SPIisWebServiceApplicationPool `
-Name <appPoolName> -Account <admin>
}
New-SPWordConversionServiceApplication `
-Name $serviceName -ApplicationPool $appPool