Save-VETItem

In this article

    Short Description

    Saves Microsoft Teams items.

    Applies to: Veeam Backup for Microsoft Office 365

    Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License

    Syntax

    This cmdlet provides parameter sets that allow you to:

    • Save a Microsoft Teams channel post.

    Save-VETItem [-Post] <VETPost[]> [-Path] <string> [-Force]  [<CommonParameters>]

    • Save a file published in a Microsoft Teams team channel.

    Save-VETItem [-File] <VETFile[]> [-Path] <string> [-AsZip] [-Force]  [<CommonParameters>]

    Detailed Description

    This cmdlet saves Microsoft Teams items such as posts and files.

    Parameters

    Parameter

    Description

    Type

    Required

    Position

    Accept Pipeline Input

    Post

    Specifies Microsoft Teams team channel posts that you want to save.

    Accepts the VETPost[] type. To get this object, run the Get-VETPost cmdlet.

    True

    0

    True (ByValue)

    File

    Specifies Microsoft Teams team channel files that you want to save.

    Accepts the VETFile[] type. To get this object, run the Get-VETFile cmdlet.

    True

    0

    True (ByValue)

    AsZip

    Defines that the cmdlet will save the specified files as a ZIP archive.

    SwitchParameter

    False

    2

    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

    Force

    Defines that the cmdlet will create a folder in the specified path if the folder does not exist yet.

    SwitchParameter

    True

    Named

    True (ByValue)

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.

    Examples

    Save-VETItemExample 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 cmdlet. Save the result to the $session variable.
    2. Run the Get-VETOrganization cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value. Save the result to the $org variable.
    3. Run the Get-VETPost cmdlet. Set the $org variable as the Organization parameter value. Specify the Query parameter value. Save the result to the $post variable.
    1. Run the Save-VETItem cmdlet. Set the $post variable as the Post parameter value. Specify the Path parameter value.

    Save-VETItemExample 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 cmdlet. Save the result to the $session variable.
    2. Run the Get-VETOrganization cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value. Save the result to the $org variable.
    3. Run the Get-VETFile cmdlet. Set the $org variable as the Organization parameter value. Specify the Query parameter value. Save the result to the $file variable.
    1. Run the Save-VETItem cmdlet. Set the $file variable as the File parameter value. Specify the Path parameter value.

    Related Commands

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.