Friday, November 27, 2015

Create Word Automation Service Application using PowerShell in SharePoint 2016

The Word Automation Services Service Application provides developers a way to perform server-side conversion of documents that are supported by Microsoft Word (such as .doc, .docx, .rtf, etc) into other formats such as PDF,XPS, RTF, Docx,etc. In other words, Word Automation Services provides the "Save As" like functionality of the Microsoft Word client for SharePoint.

How to Create Word Automation Service Application using SharePoint 2016 Central Administration:
To create a Word Automation Service Application from SharePoint 2016 Central Administration site, Go to:

  • Application Management >> Manage Service Applications.
  • On the Service Applications tab, click New >> and then click Word Automation Services Application.
  • In the Create New Word Automation Services Application dialog box, Enter the Name, Application Pool, Select "Add to Default Proxy List" and click on next.
    sharepoint 2013 configure word automation service application
  • Enter the Database Server name and name of the database for word automation service application. Click Finish. 
    sharepoint 2016 create word automation service application powershell
  • Once created, The new instance of Word Automation Services appears in the list of service applications on the Service Applications tab.
PowerShell Script to Create Word Automation Service Application:
Use this PowerShell script to create word automation service application in SharePoint 2013/SharePoint 2016.
# Configuration Parameters
$InstanceName = "Word Automation Services"
$ServiceAppName = "Word Automation Service Application"
$AppPoolName = "Service Application App Pool"
$DBName = "SP16_Services_WordAutomation"

Write-Host "Starting the $InstanceName Instance..."
Get-SPServiceInstance | where-object {$_.TypeName -eq $InstanceName} | Start-SPServiceInstance

#There is no New-SPWordConversionServiceApplicationProxy, we can't therefore set it's name
#The -default parameter adds the automatically created proxy to the default proxy group
Write-Host "Creating $ServiceAppName Application & Proxy..."
$ServiceApp = New-SPWordConversionServiceApplication -Name $ServiceAppName -ApplicationPool $AppPoolName -DatabaseName $DBName -Default

Write-Host "Word Automation Service App Created!" 
There is no cmdlet for creating service application proxy for word automation service (such as: New-SPWordConversionServiceApplicationProxy. So the -Default switch in the above cmdlet adds the automatically created proxy to the default proxy group.



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...