|
| 1 | +--- |
| 2 | +applicable: Microsoft Teams |
| 3 | +author: lakshmiroy |
| 4 | +external help file: Microsoft.Rtc.Management.Hosted.dll-help.xml |
| 5 | +Locale: en-US |
| 6 | +manager: wayvad |
| 7 | +Module Name: MicrosoftTeams |
| 8 | +ms.author: lakshmiroy |
| 9 | +online version: https://learn.microsoft.com/powershell/module/microsoftteams/new-csTeamsRemoteLogCollectionDevice |
| 10 | +schema: 2.0.0 |
| 11 | +title: New-CsTeamsRemoteLogCollectionDevice |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +# New-CsTeamsRemoteLogCollectionDevice |
| 16 | + |
| 17 | +## SYNOPSIS |
| 18 | + |
| 19 | +This cmdlet allows you to create a new TeamsRemoteLogCollectionDevice instance and set it's properties. |
| 20 | + |
| 21 | +## SYNTAX |
| 22 | + |
| 23 | +```powershell |
| 24 | +New-CsTeamsRemoteLogCollectionDevice [-Identity <Guid>] [-UserId <String>] |
| 25 | + [-DeviceId <String>] [-ExpireAfter <String>] [-Force] [-WhatIf] [-Confirm] |
| 26 | + [<CommonParameters>] |
| 27 | +``` |
| 28 | + |
| 29 | +## DESCRIPTION |
| 30 | +This cmdlet allows you to create a TeamsRemoteLogCollectionDevice instance. |
| 31 | + |
| 32 | +Remote log collection is a feature in Microsoft Teams that allows IT administrators to remotely trigger the collection of diagnostic logs from user devices through the Teams Admin Center (TAC). Instead of relying on manual user intervention, admins can initiate log collection for troubleshooting directly from the TAC portal. |
| 33 | + |
| 34 | +TeamsRemoteLogCollectionConfiguration is updated with a list of devices when an administrator wants to initiate a request for remote log collection for a user's device. Each device has a unique GUID identity, userId, deviceId and expiry date. |
| 35 | + |
| 36 | +## EXAMPLES |
| 37 | + |
| 38 | +Each Identity, userId and deviceId must be a valid GUID |
| 39 | +### Example 1 |
| 40 | +```powershell |
| 41 | +PS C:\> New-CsTeamsRemoteLogCollectionDevice -UserId "765267a2-aa73-4984-a37e-43470f5e21a7" -DeviceId "765267a2-aa73-4984-a37e-43470f5e21a7" -ExpireAfter "06/07/2025 15:30:45" |
| 42 | +``` |
| 43 | + |
| 44 | +Creates a new instance of TeamsRemoteLogCollectionDevice. |
| 45 | + |
| 46 | +## PARAMETERS |
| 47 | + |
| 48 | +### -UserId |
| 49 | + |
| 50 | +> Applicable: Microsoft Teams |
| 51 | +
|
| 52 | +Indicates the userId of the user for which an admin is requesting logs for. This userId must be a valid GUID. |
| 53 | + |
| 54 | +```yaml |
| 55 | +Type: String |
| 56 | +Parameter Sets: (All) |
| 57 | +Aliases: |
| 58 | +Required: False |
| 59 | +Position: Named |
| 60 | +Default value: None |
| 61 | +Accept pipeline input: False |
| 62 | +Accept wildcard characters: False |
| 63 | +``` |
| 64 | +
|
| 65 | +### -DeviceId |
| 66 | +
|
| 67 | +> Applicable: Microsoft Teams |
| 68 | +
|
| 69 | +Indicates the deviceId of the device for which an admin is requesting logs for. This deviceId must be a valid GUID. |
| 70 | +
|
| 71 | +```yaml |
| 72 | +Type: String |
| 73 | +Parameter Sets: (All) |
| 74 | +Aliases: |
| 75 | +Required: False |
| 76 | +Position: Named |
| 77 | +Default value: None |
| 78 | +Accept pipeline input: False |
| 79 | +Accept wildcard characters: False |
| 80 | +``` |
| 81 | +
|
| 82 | +### -ExpireAfter |
| 83 | +
|
| 84 | +> Applicable: Microsoft Teams |
| 85 | +
|
| 86 | +Indicates the expiry date after which the remote log collection request will expire. This expire after date should be set to now() + 3 days. This expiry date should be in ISO 8601 UTC format. |
| 87 | +
|
| 88 | +```yaml |
| 89 | +Type: String |
| 90 | +Parameter Sets: (All) |
| 91 | +Aliases: |
| 92 | +Required: False |
| 93 | +Position: Named |
| 94 | +Default value: None |
| 95 | +Accept pipeline input: False |
| 96 | +Accept wildcard characters: False |
| 97 | +``` |
| 98 | +
|
| 99 | +### -Confirm |
| 100 | +Prompts you for confirmation before running the cmdlet. |
| 101 | +
|
| 102 | +```yaml |
| 103 | +Type: SwitchParameter |
| 104 | +Parameter Sets: (All) |
| 105 | +Aliases: cf |
| 106 | + |
| 107 | +Required: False |
| 108 | +Position: Named |
| 109 | +Default value: None |
| 110 | +Accept pipeline input: False |
| 111 | +Accept wildcard characters: False |
| 112 | +``` |
| 113 | +
|
| 114 | +### -Identity |
| 115 | +
|
| 116 | +> Applicable: Microsoft Teams |
| 117 | +
|
| 118 | +Policy instance name. |
| 119 | +
|
| 120 | +```yaml |
| 121 | +Type: XdsIdentity |
| 122 | +Parameter Sets: (All) |
| 123 | +Aliases: |
| 124 | +Required: True |
| 125 | +Position: 1 |
| 126 | +Default value: None |
| 127 | +Accept pipeline input: False |
| 128 | +Accept wildcard characters: False |
| 129 | +``` |
| 130 | +
|
| 131 | +### -WhatIf |
| 132 | +Shows what would happen if the cmdlet runs. |
| 133 | +The cmdlet is not run. |
| 134 | +
|
| 135 | +```yaml |
| 136 | +Type: SwitchParameter |
| 137 | +Parameter Sets: (All) |
| 138 | +Aliases: wi |
| 139 | + |
| 140 | +Required: False |
| 141 | +Position: Named |
| 142 | +Default value: None |
| 143 | +Accept pipeline input: False |
| 144 | +Accept wildcard characters: False |
| 145 | +``` |
| 146 | +
|
| 147 | +### CommonParameters |
| 148 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). |
| 149 | +
|
| 150 | +## INPUTS |
| 151 | +
|
| 152 | +### None |
| 153 | +
|
| 154 | +## OUTPUTS |
| 155 | +
|
| 156 | +### System.Object |
| 157 | +
|
| 158 | +## NOTES |
| 159 | +
|
| 160 | +## RELATED LINKS |
| 161 | +
|
| 162 | +[Get-CsTeamsRemoteLogCollectionConfiguration](https://learn.microsoft.com/powershell/module/microsoftteams/get-csTeamsRemoteLogCollectionConfiguration) |
| 163 | +
|
| 164 | +[Get-CsTeamsRemoteLogCollectionDevice](https://learn.microsoft.com/powershell/module/microsoftteams/get-csTeamsRemoteLogCollectionDevice) |
| 165 | +
|
| 166 | +[Set-CsTeamsRemoteLogCollectionDevice](https://learn.microsoft.com/powershell/module/microsoftteams/set-csTeamsRemoteLogCollectionDevice) |
| 167 | +
|
| 168 | +[Remove-CsTeamsRemoteLogCollectionDevice](https://learn.microsoft.com/powershell/module/microsoftteams/remove-csTeamsRemoteLogCollectionDevice) |
0 commit comments