# Export-OfficeWordGoogleDocument

Plans, compiles or exports Word documents to Google Docs.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Word.WordDocument` `System.String[]`

**Outputs**

`OfficeIMO.Word.GoogleDocs.GoogleDocsTranslationPlan` `OfficeIMO.Word.GoogleDocs.GoogleDocsBatch` `OfficeIMO.Word.GoogleDocs.GoogleDocumentReference`

**Source**

[ExportOfficeWordGoogleDocumentCommand.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Word/ExportOfficeWordGoogleDocumentCommand.cs#L26) 

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>]
```

[#](#method-export-officewordgoogledocument-worddocument-switchparameter-googledocsexportmode-object-googleworkspacesession-switchparameter-switchparameter)

Parameter set: `Document`

```
Export-OfficeWordGoogleDocument
[-FailOnLoss]
[-Mode <Export|Plan|Batch>]
[-Options <Object[]>]
[-Path] <String[]>
[-Session <GoogleWorkspaceSession>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-export-officewordgoogledocument-switchparameter-googledocsexportmode-object-string-googleworkspacesession-switchparameter-switchparameter)

Parameter set: `Path`

```
Export-OfficeWordGoogleDocument
[-FailOnLoss]
-LiteralPath <String[]>
[-Mode <Export|Plan|Batch>]
[-Options <Object[]>]
[-Session <GoogleWorkspaceSession>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-export-officewordgoogledocument-switchparameter-string-googledocsexportmode-object-googleworkspacesession-switchparameter-switchparameter)

Parameter set: `LiteralPath`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Export and Import Google Docs](/docs/google-workspace/docs/) Guide
  
  Plan a Word-to-Google-Docs export offline, create a Google Doc from a WordDocument, import a Google Doc, and replace an existing one safely.
- [Export Office Documents to Google Workspace](/docs/google-workspace/) Guide
  
  Export Word, Excel, and PowerPoint documents to Google Docs, Sheets, and Slides, import them back, and work with Drive through one shared session.

## Examples

### Inspect translation without signing in.

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:FCE144841C019EAFD8BF59DF370C422EFB2E1111E062523E7946032EDEBD9A6A -->
