Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Export-OfficeWordGoogleDocument

Module
PSWriteOffice
Inputs
OfficeIMO.Word.WordDocument System.String[]
Outputs
OfficeIMO.Word.GoogleDocs.GoogleDocsTranslationPlan OfficeIMO.Word.GoogleDocs.GoogleDocsBatch OfficeIMO.Word.GoogleDocs.GoogleDocumentReference

Plans, compiles or exports Word documents to Google Docs.

Syntax

Export-OfficeWordGoogleDocument
[-Document <WordDocument>]
[-FailOnLoss]
[-Mode <Export|Plan|Batch>]
[-Options <Object[]>]
[-Session <GoogleWorkspaceSession>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: Document
Export-OfficeWordGoogleDocument
[-FailOnLoss]
[-Mode <Export|Plan|Batch>]
[-Options <Object[]>]
[-Path] <String[]>
[-Session <GoogleWorkspaceSession>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: Path
Export-OfficeWordGoogleDocument
[-FailOnLoss]
-LiteralPath <String[]>
[-Mode <Export|Plan|Batch>]
[-Options <Object[]>]
[-Session <GoogleWorkspaceSession>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: LiteralPath

Examples

Inspect translation without signing in.

Export-OfficeWordGoogleDocument -Path .\Report.docx -Mode Plan

Parameters

-Document WordDocument optionalpipeline: True (ByValue)sets: Document
Caller-owned document; omission uses the enclosing content block.
-FailOnLoss SwitchParameter optional
Reject translation warnings or errors before returning a result or mutating Google.
-Mode GoogleDocsExportMode optional
Export by default, or return an offline Plan or Batch.
Possible values: Export, Plan, Batch
-Options Object[] optional
One native options object and property hashtables applied to an independent snapshot.
-Session GoogleWorkspaceSession optional
Configured Google Workspace session, required for Export mode.
-WhatIf SwitchParameter optional
Shows what would happen if the command runs.
-Confirm SwitchParameter optional
Prompts for confirmation before running the command.
-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path
Source document paths, including filesystem wildcard patterns.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
Literal source paths; FileInfo.FullName and provider PSPath bind here.

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.