Restore-VETItem
Short Description
Restores Microsoft Teams items.
Applies to
Veeam Backup for Microsoft 365
Product Edition: Community, Rental License, Subscription License
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-VETItem [-Channel <VETChannel>] -Credential <PSCredential> -AllPosts [<CommonParameters>] |
- 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 a Microsoft Entra 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 a Microsoft Entra 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 a Microsoft Entra 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 a Microsoft Entra application ID.
Restore-VETItem [-Channel <VETChannel>] -ApplicationId <Guid> -AllPosts [<CommonParameters>] |
- Restore files using multi-factor authentication with a Microsoft Entra application.
Restore-VETItem [-File <VETFile[]>] -ApplicationId <Guid> -ApplicationCertificatePath <String> -ApplicationCertificatePassword <SecureString> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreOnlyLatestVersion] [<CommonParameters>] |
- Restore files using multi-factor authentication with a Microsoft Entra application ID.
Restore-VETItem [-File <VETFile[]>] -ApplicationId <Guid> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreOnlyLatestVersion] [<CommonParameters>] |
- Restore tabs using multi-factor authentication with a Microsoft Entra application.
Restore-VETItem [-Tab <VETOtherTab[]>] -ApplicationId <Guid> -ApplicationCertificatePath <String> -ApplicationCertificatePassword <SecureString> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore tabs using multi-factor authentication with a Microsoft Entra application ID.
Restore-VETItem [-Tab <VETOtherTab[]>] -ApplicationId <Guid> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore a channel using multi-factor authentication with a Microsoft Entra application.
Restore-VETItem [-Channel <VETChannel>] -ApplicationId <Guid> -ApplicationCertificatePath <String> -ApplicationCertificatePassword <SecureString> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore a channel using multi-factor authentication with a Microsoft Entra application ID.
Restore-VETItem [-Channel <VETChannel>] -ApplicationId <Guid> [-RestoreChangedItem] [-RestoreMissingItem] [<CommonParameters>] |
- Restore a team using multi-factor authentication with a Microsoft Entra application.
Restore-VETItem [-Team <VETTeam>] -ApplicationId <Guid> -ApplicationCertificatePath <String> -ApplicationCertificatePassword <SecureString> [-ImpersonationAccountName <String>] [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
- Restore a team using multi-factor authentication with a Microsoft Entra application ID.
Restore-VETItem [-Team <VETTeam>] -ApplicationId <Guid> [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
- Restore multiple teams using multi-factor authentication with a Microsoft Entra application.
Restore-VETItem [-MultipleTeams <VETTeam[]>] -ApplicationId <Guid> -ApplicationCertificatePath <String> -ApplicationCertificatePassword <SecureString> [-ImpersonationAccountName <String>] [-RestoreChangedItem] [-RestoreMissingItem] [-RestoreMembers] [-RestoreSettings] [<CommonParameters>] |
- Restore multiple teams using multi-factor authentication with a Microsoft Entra 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 a Microsoft Entra application.
Note: |
To perform restore operations, you must first start a restore session. For more information on how to start a restore session, see Start-VBOTeamsItemRestoreSession. |
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Credential | Specifies credentials that will be used for authenticating to the Microsoft 365 organization. | Accepts the PSCredential object. To get this object, run the Get-Credential cmdlet. | 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. Note: If you use this parameter, you cannot use the AllPosts parameter. | DateTime | True | 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. Note: 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. Default: False Note: If you use this parameter, you cannot use the PostsFrom and PostsTo parameters. | SwitchParameter | True | 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. Default: False | SwitchParameter | False | Named | False |
RestoreMissingItem | Defines that the cmdlet will restore items that are missing in the original location. Default: False | SwitchParameter | False | Named | False |
File | Specifies Microsoft Teams team channel files. The cmdlet will restore the specified files. | Accepts the VETFile[] object. 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. Default: False | SwitchParameter | False | Named | False |
Tab | Specifies Microsoft Teams channel tabs. The cmdlet will restore the specified tabs. | Accepts the VETOtherTab[] object. To get this object, run the Get-VETOtherTab cmdlet. | True | 0 | True (ByValue) |
RestoreMembers | Defines that the cmdlet will restore team members of the specified team along with their roles. Default: False | SwitchParameter | False | Named | False |
Team | Specifies Microsoft Teams team. The cmdlet will restore items of this team. | Accepts the VETTeam object. To get this object, run the Get-VETTeam cmdlet. | True | 0 | True (ByValue) |
RestoreSettings | Defines that the cmdlet will restore settings of the specified team. Default: False | SwitchParameter | False | Named | False |
MultipleTeams | Specifies Microsoft Teams teams. The cmdlet will restore items of these teams. | Accepts the VETTeam[] object. To get this object, run the Get-VETTeam cmdlet. | True | 0 | True (ByValue) |
ApplicationId | To restore data using multi-factor authentication. Specifies a Microsoft Entra application ID. 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 a Microsoft Entra application. | 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 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 | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters 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/2023 10:00 AM and 8/31/2023 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 Microsoft Entra 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 Microsoft Entra Application Certificate
This example shows how to restore the General Microsoft Teams team channel with the following settings:
Perform the following steps:
|
Related Commands