Export-VETPost
Short Description
Exports Microsoft Teams team channel posts to a file in the HTML format.
Applies to
Veeam Backup for Microsoft 365
Product Edition: Community, Rental License, Subscription License
Syntax
This cmdlet provides parameter sets that allow you to:
- Export specified posts.
|
Export-VETPost [-Post] <VETPost[]> [-Path] <String> [-Force] [<CommonParameters>] |
- Export posts of a specified channel.
|
Export-VETPost [-Channel] <VETChannel> [-Path] <String> [-From] <DateTime> [[-To] <DateTime>] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet exports posts published in Microsoft Teams team channels to a file in the HTML format.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Post |
Specifies Microsoft Teams team channel posts that you want to export. |
Accepts the VETPost[] object. To get this object, run the Get-VETPost cmdlet. |
True |
0 |
True (ByValue) |
|
Path |
Specifies a path to the folder and a name for the HTML file where you want to export posts. |
String |
True |
1 |
False |
|
Force |
Defines that the cmdlet will create a folder where to save the HTML file if the specified folder does not exist. Default: False |
SwitchParameter |
False |
Named |
False |
|
Channel |
Specifies a Microsoft Teams team channel. The cmdlet will export posts from this channel. |
Accepts the VETChannel object. To get this object, run the Get-VETChannel cmdlet. |
True |
0 |
True (ByValue) |
|
From |
Specifies the point in time that defines the start of the period for which you want to export posts. The cmdlet will export posts created within the specified time period. |
DateTime |
True |
2 |
False |
|
To |
Specifies the point in time that defines the end of the period for which you want to export posts. The cmdlet will export posts created within the specified time period. |
DateTime |
False |
3 |
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. Exporting Specified Posts
|
This example shows how to export specified posts. The cmdlet will export posts with the following settings:
Perform the following steps:
|
Example 2. Exporting Posts of Specified Channel
|
This example shows how to export posts of the specified channel. The cmdlet will export posts with the following settings:
Perform the following steps:
|
Related Commands