Restore-VETItem
Short Description
Restores Microsoft Teams items.
Applies to: Veeam Backup for Microsoft Office 365
Product Edition: Community, Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides parameter sets that allow you to:
- Restore posts of a Microsoft Teams channel for a specified time period.
Restore-VETItem [-Channel] <VETChannel> -Credential <pscredential> -PostsFrom <datetime> -PostsTo <datetime> [<CommonParameters>] |
- Restore all posts of a Microsoft Teams channel.
- Restore files of a Microsoft Teams channel.
Restore-VETItem [-File] <VETFile[]> -Credential <pscredential> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreOnlyLatestVersion] [<CommonParameters>] |
- Restore tabs of a Microsoft Teams channel.
Restore-VETItem [-Tab] <VETOtherTab[]> -Credential <pscredential> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore a Microsoft Teams channel.
Restore-VETItem [-Channel] <VETChannel> -Credential <pscredential> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore a Microsoft Teams team.
Restore-VETItem [-Team] <VETTeam> -Credential <pscredential> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
- Restore multiple Microsoft Teams teams.
Restore-VETItem [-MultipleTeams] <VETTeam[]> -Credential <pscredential> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
- Restore posts of a Microsoft Teams channel for a specified time period using Multi-factor authentication with an Azure AD application.
Restore-VETItem [-Channel] <VETChannel> -ApplicationId <guid> -ApplicationCertificatePath <string> -ApplicationCertificatePassword <securestring> -PostsFrom <datetime> -PostsTo <datetime> [<CommonParameters>] |
- Restore posts of a Microsoft Teams channel for a specified time period using Multi-factor authentication with an Azure AD application ID.
Restore-VETItem [-Channel] <VETChannel> -ApplicationId <guid> -PostsFrom <datetime> -PostsTo <datetime> [<CommonParameters>] |
- Restore all posts of a Microsoft Teams channel using Multi-factor authentication with an Azure AD application.
Restore-VETItem [-Channel] <VETChannel> -ApplicationId <guid> -ApplicationCertificatePath <string> -ApplicationCertificatePassword <securestring> -AllPosts [<CommonParameters>] |
- Restore all posts of a Microsoft Teams channel using Multi-factor authentication with an Azure AD application ID.
- Restore files using Multi-factor authentication with an Azure AD application.
Restore-VETItem [-File] <VETFile[]> -ApplicationId <guid> -ApplicationCertificatePath <string> -ApplicationCertificatePassword <securestring> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreOnlyLatestVersion] [<CommonParameters>] |
- Restore files using Multi-factor authentication with an Azure AD application ID.
Restore-VETItem [-File] <VETFile[]> -ApplicationId <guid> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreOnlyLatestVersion] [<CommonParameters>] |
- Restore tabs using Multi-factor authentication with an Azure AD application.
Restore-VETItem [-Tab] <VETOtherTab[]> -ApplicationId <guid> -ApplicationCertificatePath <string> -ApplicationCertificatePassword <securestring> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore tabs using Multi-factor authentication with an Azure AD application ID.
Restore-VETItem [-Tab] <VETOtherTab[]> -ApplicationId <guid> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore a channel using Multi-factor authentication with an Azure AD application.
Restore-VETItem [-Channel] <VETChannel> -ApplicationId <guid> -ApplicationCertificatePath <string> -ApplicationCertificatePassword <securestring> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore a channel using Multi-factor authentication with an Azure AD application ID.
Restore-VETItem [-Channel] <VETChannel> -ApplicationId <guid> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore a team using Multi-factor authentication with an Azure AD application.
Restore-VETItem [-Team] <VETTeam> -ApplicationId <guid> -ApplicationCertificatePath <string> -ApplicationCertificatePassword <securestring> [-RestoreChangedItem] [-RestoreMissingItem] [-ImpersonationAccountName <string>] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
- Restore a team using Multi-factor authentication with an Azure AD application ID.
Restore-VETItem [-Team] <VETTeam> -ApplicationId <guid> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
- Restore multiple teams using Multi-factor authentication with an Azure AD application.
Restore-VETItem [-MultipleTeams] <VETTeam[]> -ApplicationId <guid> -ApplicationCertificatePath <string> -ApplicationCertificatePassword <securestring> [-RestoreChangedItem] [-RestoreMissingItem] [-ImpersonationAccountName <string>] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
- Restore multiple teams using Multi-factor authentication with an Azure AD application ID.
Restore-VETItem [-MultipleTeams] <VETTeam[]> -ApplicationId <guid> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
Detailed Description
This cmdlet allows you to restore Microsoft Teams items:
- Teams
- Channels
- Posts
- Files
- Tabs
You can restore Microsoft Teams items with one of the following authentication methods:
- Authentication methods that utilize legacy protocols.
- Multi-factor authentication. To restore data, the cmdlet utilizes an Azure AD application.
|
To perform restore operations, you must first start a restore session. For more information on how to start a restore session, see the Start-VBOTeamsItemRestoreSession cmdlet. |
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Credential | Specifies credentials that will be used to authenticate against the Microsoft Office 365 organization. | PSCredential | True | Named | False |
Channel | Specifies a Microsoft Teams team channel. The cmdlet will restore items of this channel. | Accepts the VETChannel object. To get this object, run the Get-VETChannel cmdlet. | True | 0 | True (ByValue) |
PostsFrom | Specifies the point in time that defines the start of the period for which you want to restore posts of a Microsoft Teams channel. The cmdlet will restore posts published within the specified time period. The time when a post was published is defined by the last modification time of the post. If you use this parameter, you cannot use the AllPosts parameter. | DateTime | False | Named | False |
PostsTo | Specifies the point in time that defines the end of the period for which you want to restore posts of a Microsoft Teams channel. The cmdlet will restore posts publish within the specified time period. The time when a post was published is defined by the last modification time of the post. If you use this parameter, you cannot use the AllPosts parameter. | DateTime | False | Named | False |
AllPosts | Defines that the cmdlet will restore all posts of a Microsoft Teams channel. If you use this parameter, you cannot use the PostsFrom and PostsTo parameters. | SwitchParameter | False | Named | False |
RestoreChangedItem | Defines that the cmdlet will restore items that have changed in the original location since the time when the backup was created. | SwitchParameter | False | Named | False |
RestoreMissingItem | Defines that the cmdlet will restore items that are missing in the original location. | SwitchParameter | False | Named | False |
File | Specifies Microsoft Teams team channel files. The cmdlet will restore the specified files. | Accepts the VETFile[] type. To get this object, run the Get-VETFile cmdlet. | True | 0 | True (ByValue) |
RestoreOnlyLatestVersion | Defines that the cmdlet will restore only the latest version of a backed-up file. If you do not use this parameter, Veeam Explorer for Microsoft Teams will restore all versions of a file from the backup. | SwitchParameter | False | Named | False |
Tab | Specifies Microsoft Teams channel tabs. The cmdlet will restore the specified tabs. | Accepts the VETOtherTab[] type. To get this object, run the Get-VETOtherTab cmdlet. | True | 0 | True (ByValue) |
Team | Specifies Microsoft Teams team. The cmdlet will restore items of this team. | Accepts the VETTeam type. To get this object, run the Get-VETTeam cmdlet. | True | 0 | True (ByValue) |
MultipleTeam | Specifies Microsoft Teams teams. The cmdlet will restore items of these teams. | Accepts the VETTeam[] type. To get this object, run the Get-VETTeam cmdlet. | True | 0 | True (ByValue) |
RestoreMembers | Defines that the cmdlet will restore team members of the specified team along with their roles. | SwitchParameter | False | Named | False |
RestoreSettings | Defines that the cmdlet will restore settings of the specified team. | SwitchParameter | False | Named | False |
ApplicationId | To restore data using Multi-factor authentication. Specifies an ID of an Azure AD application. The cmdlet will use this application ID to set up a secure connection to a Microsoft organization. | Guid | True | Named | False |
ApplicationCertificatePath | To restore data using Multi-factor authentication. Specifies a path to the certificate. The cmdlet will import this certificate that is located in this path to set up an encrypted connection to a Microsoft organization. | String | True | Named | False |
ApplicationCertificatePassword | To restore data using Multi-factor authentication. Specifies the certificate password. The cmdlet will use this password to confirm the certificate that you want to import to an Azure AD application. This parameter is obligatory. | SecureString | True | Named | False |
ImpersonationAccountName | To restore data using Multi-factor authentication. Specifies a user name of the account that will be used as a team owner account to restore a team. This may be useful if you restore a previously removed team at the time when the original team owner account does not exist in Microsoft Office 365. Use this parameter together with the ApplicationCertificatePassword parameter. If you omit this parameter, the cmdlet will restore a team using an original team owner account from the backup. | String | True | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.
Output Object
None.
Examples
Example 1. Restoring Microsoft Teams Posts
This example shows how to restore posts of the General Microsoft Teams team channel created between 7/1/2020 10:00 AM and 8/31/2020 10:00 AM.
Perform the following steps:
|
Example 2. Restoring Microsoft Teams Channel
This example shows how to restore the General Microsoft Teams team channel with the following settings:
Perform the following steps:
|
Example 3. Restoring Microsoft Teams Files
This example shows how to restore files of a Microsoft Teams team channel with the following settings:
Perform the following steps:
|
Example 4. Restoring Microsoft Teams Channel Tab
This example shows how to restore the Website Microsoft Teams team channel tab with the following settings:
Perform the following steps:
|
Example 5. Restoring Microsoft Teams Team
This example shows how to restore the IT Microsoft Teams team channel with the following settings:
Perform the following steps:
|
Example 6. Restoring Microsoft Teams Channel Using Multi-Factor Authentication with Azure AD Application ID
This example shows how to restore the General Microsoft Teams team channel with the following settings:
Perform the following steps:
|
Example 7. Restoring Microsoft Teams Channel Using Multi-Factor Authentication with Azure AD Application
This example shows how to restore the General Microsoft Teams team channel with the following settings:
Perform the following steps:
|
Related Commands