programming4us
programming4us
WEBSITE

PowerShell for SharePoint 2013 : Word Automation Services - Configure Supported Document Formats for Conversion, Modify Database Information

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

1. Configure Supported Document Formats for Conversion


Scenario/Problem: You need to modify the supported document formats for Word Services.


Solution: Use the AddSupportedFormats and RemoveSupportedFormats parameters with the Set-SPWordConversionServiceApplication cmdlet.

By default, all available document file formats are supported within Word Services. You can use the AddSupportedFormats or RemoveSupportedFormats parameters with the Set-SPWordConversionServiceApplication cmdlet to modify which set of formats is supported.

Both of these parameters take a comma-separated list of valid document formats. The recognized values are as follows:

docx: Open XML document. This essentially is any Word 2010 or Word 2007 document and includes .docx, .docm, .dotx, and .dotm documents.

doc: Word 97–2003 documents. Provides support for older Word documents with .doc and .dot extensions.

rtf: Rich Text Format. Supports only .rtf files.

mht: Web page. Any HTML-based web page, including .htm, .html, .mht, and .mhtml documents.

xml: Word 2003 XML document. Any Word 2003 document saved as an .xml file.

As an example of how these parameters operate, removing doc also removes support it for .dot documents. The supported formats are grouped together and cannot be broken apart. These groups correspond to the available options available through Central Administration, as shown in Figure 1. Listing 1 shows sample command lines.

Listing 1. Modifying the Supported File Formats


Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -RemoveSupportedFormats rtf,mht
Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -AddSupportedFormats docx,doc


Image

Figure 1. Supported document options for Word Services.

You can use quotation marks around a single file format; however, when you are providing a comma-separated list of formats, you cannot use quotation marks. No errors are presented, although the operation cannot modify the settings.


Tip

When scripting out supported file format operations, use the ClearSupportedFormats parameter first to start with a clean slate; then just add the supported types. This ensures that any unsupported types do not remain active.

2. Modify Database Information


Scenario/Problem: You need to modify the database that Word Services should use.


Solution: Use the database parameters with the Set-SPWordConversionServiceApplication cmdlet.

Three database parameters can be used to configure the database settings for Word Services: DatabaseServer, DatabaseName, and DatabaseCredential. The DatabaseCredential parameter is used only if the authorization is performed through SQL authentication. Even though all these parameters are optional overall, if the DatabaseCredential parameter is used, then DatabaseServer and DatabaseName become required. Listing 2 shows a sample modification of the database settings.

Listing 2. Changing the Database Configuration for Word Services


Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -DatabaseServer SP2010
-DatabaseName WordServices -DatabaseCredential (Get-Credential)



Tip

Use inline credentials instead of (Get-Credential)


If the database described within the DatabaseName parameter does not exist, it is created automatically.


Tip

Use the database parameters to create a new database without the GUID. Delete the old WordAutomationServices_GUID database afterward.


Other  
  •  PowerShell for SharePoint 2013 : Word Automation Services - Configure the Conversion Processes, Configure Conversion Throughput
  •  ASP.NET 4 : Error Handling, Logging, and Tracing - Throwing Your Own Exceptions
  •  ASP.NET 4 : Error Handling, Logging, and Tracing - Handling Exceptions
  •  ASP.NET 4 : Error Handling, Logging, and Tracing - Exception Handling
  •  ASP.NET 4 : Error Handling, Logging, and Tracing - Common Errors
  •  Sharepoint 2010 : Designing a Workflow Using Visio 2010 (part 3) - Using Visio Services to Visualize Workflow State
  •  Sharepoint 2010 : Designing a Workflow Using Visio 2010 (part 2) - Implementing a Visio Workflow Using SharePoint Designer
  •  Sharepoint 2010 : Designing a Workflow Using Visio 2010 (part 1) - Using the Microsoft SharePoint Workflow Template
  •  Sharepoint 2010 : Workflow - Demonstration Scenario
  •  Sharepoint 2010 : Workflow Foundation Fundamentals
  •  
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us
    programming4us
     
     
    programming4us