---
title: "Save-VETItem"
description: "Saves Microsoft Teams items. Product: Veeam Backup for Microsoft 365 Product Edition: Community, Rental License, Subscription License This cmdlet provides the following parameter sets: This cmdlet saves Microsoft Teams items such as posts and files."
canonical: "https://helpcenter.veeam.com/docs/vbo365/explorers_powershell/save-vetitem.html"
breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft Teams > Save-VETItem"
dateModified: "2026-08-20"
---
# Save-VETItem
## Short Description
Saves Microsoft Teams items.
**Product**: Veeam Backup for Microsoft 365
**Product Edition**: Community, Rental License, Subscription License
## Syntax
This cmdlet provides the following parameter sets:
-
SavePostParameterSet
```
Save-VETItem [-Post] [-Path] [-Force] []
```
-
SaveFileParameterSet
```
Save-VETItem [-File] [-Path] [-AsZip] [-Force] []
```
## Detailed Description
This cmdlet saves Microsoft Teams items such as posts and files.
## Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
AsZip
|
Defines that the cmdlet will save the specified files as a ZIP archive. Default: False
|
SwitchParameter
|
False
|
2
|
False
|
|
File
|
Specifies Microsoft Teams team channel files that you want to save. Accepts the VETFile[] object. To get this object, run the Get-VETFile cmdlet.
|
VETFile[]
|
True
|
0
|
True (ByValue)
|
|
Force
|
Defines that the cmdlet will create a folder in the specified path if the folder does not exist yet. Default: False
|
SwitchParameter
|
False
|
Named
|
False
|
|
Path
|
Specifies a path to a folder where you want to save the specified posts or files. If you want to save files as a ZIP archive, specify a path to the ZIP archive file.
|
String
|
True
|
1
|
False
|
|
Post
|
Specifies Microsoft Teams team channel posts that you want to save. Accepts the VETPost[] object. To get this object, run the Get-VETPost cmdlet.
|
VETPost[]
|
True
|
0
|
True (ByValue)
|
``
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Learn.
## Examples
::: example
### Example 1. Saving Microsoft Teams Post
This example shows how to save the `Announcement` post to the `C:\save` path.
```
$session = Get-VBOTeamsItemRestoreSession
$org = Get-VETOrganization -Session $session -Name "ABC*"
$post = Get-VETPost -Organization $org -Query "subject: announcement"
Save-VETItem -Post $post -Path "C:\save"
```
Perform the following steps:
1. Get the Microsoft Teams post:
1. Run the [`Get-VBOTeamsItemRestoreSession`](get-vboteamsitemrestoresession.md) cmdlet. Save the result to the `$session` variable.
2. Run the [`Get-VETOrganization`](get-vetorganization.md) cmdlet. Set the `$session` variable as the `Session` parameter value. Specify the `Name` parameter value. Use the \* wildcard character to substitute the timestamp. Save the result to the `$org` variable.
3. Run the [`Get-VETPost`](get-vetpost.md) cmdlet. Set the `$org` variable as the `Organization` parameter value. Specify the `Query` parameter value. Save the result to the `$post` variable.
2. Run the `Save-VETItem` cmdlet. Set the `$post` variable as the `Post` parameter value. Specify the `Path` parameter value.
:::
::: example
### Example 2. Saving Microsoft Teams File
This example shows how to save the `report.txt` file to the `C:\save` path.
```
$session = Get-VBOTeamsItemRestoreSession
$org = Get-VETOrganization -Session $session -Name "ABC*"
$file = Get-VETFile -Organization $org -Query "filename: report"
Save-VETItem -File $file -Path "C:\save"
```
Perform the following steps:
1. Get the Microsoft Teams file.
1. Run the [`Get-VBOTeamsItemRestoreSession`](get-vboteamsitemrestoresession.md) cmdlet. Save the result to the `$session` variable.
2. Run the [`Get-VETOrganization`](get-vetorganization.md) cmdlet. Set the `$session` variable as the `Session` parameter value. Specify the `Name` parameter value. Use the \* wildcard character to substitute the timestamp. Save the result to the `$org` variable.
3. Run the [`Get-VETFile`](get-vetfile.md) cmdlet. Set the `$org` variable as the `Organization` parameter value. Specify the `Query` parameter value. Save the result to the `$file` variable.
2. Run the `Save-VETItem` cmdlet. Set the `$file` variable as the `File` parameter value. Specify the `Path` parameter value.
:::
## Related Commands
- [`Get-VBOTeamsItemRestoreSession`](get-vboteamsitemrestoresession.md)
- [`Get-VETOrganization`](get-vetorganization.md)
- [`Get-VETPost`](get-vetpost.md)
- [`Get-VETFile`](get-vetfile.md)