external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Get-TeamViewerDeviceCustomField.md schema: 2.0.0
Retrieves the custom field values set for a managed device.
Get-TeamViewerDeviceCustomField [-APIToken] <SecureString> [-ManagedDeviceId] <Object> [<CommonParameters>]Retrieves all custom field values associated with a specific managed device. These are the values assigned to the custom field definitions, not the definitions themselves.
The TeamViewer API access token.
Type: SecureString
Required: TrueThe unique identifier of the managed device. Can be a device Id string or a TeamViewerPS.ManagedDevice object.
Type: Object
Aliases: ManagedDevice, Device, DeviceId
Required: TrueGet-TeamViewerDeviceCustomField -APIToken $apiToken -ManagedDeviceId 'd12345678'Retrieves all custom field values for the specified managed device.
$device | Get-TeamViewerDeviceCustomField -APIToken $apiTokenRetrieves custom field values by piping a managed device object.
Get-TeamViewerManagedDevice -APIToken $apiToken | Get-TeamViewerDeviceCustomField -APIToken $apiTokenRetrieves the custom field values for every managed device by piping the results of Get-TeamViewerManagedDevice.
Returns device custom field value objects containing the field key Id and value.