Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Export-OfficeWordGoogleDocument

Module
PSWriteOffice
Inputs
OfficeIMO.Word.WordDocument
Outputs
OfficeIMO.Word.GoogleDocs.GoogleDocsTranslationPlan OfficeIMO.Word.GoogleDocs.GoogleDocsBatch OfficeIMO.Word.GoogleDocs.GoogleDocumentReference

Plans, compiles, or exports a Word document to Google Docs.

Syntax

Export-OfficeWordGoogleDocument
[-AsBatch]
[-FailOnLoss]
[-Options <GoogleDocsSaveOptions>]
[-Path] <String>
[-PlanOnly]
[-Session <GoogleWorkspaceSession>]
[<CommonParameters>]
#
Parameter set: Path
Export-OfficeWordGoogleDocument
[-AsBatch]
-Document <WordDocument>
[-FailOnLoss]
[-Options <GoogleDocsSaveOptions>]
[-PlanOnly]
[-Session <GoogleWorkspaceSession>]
[<CommonParameters>]
#
Parameter set: Document

Examples

Example 1

Export-OfficeWordGoogleDocument -Path 'C:\Path'

Example 2

Export-OfficeWordGoogleDocument -Document 'Value'

Parameters

-AsBatch SwitchParameter optional
Return the provider-neutral request batch without contacting Google.
-FailOnLoss SwitchParameter optional
Throw when translation reports a warning or error.
-Options GoogleDocsSaveOptions optional
Google Docs translation and destination settings.
-Path String requiredposition: 0sets: Path
Path to a Word document.
-PlanOnly SwitchParameter optional
Return the translation plan without compiling requests or contacting Google.
-Session GoogleWorkspaceSession optional
Configured Google Workspace session used for a live export.
-Document WordDocument requiredpipeline: True (ByValue)sets: Document
Word document to export.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.