| external help file | TeamViewerPS-help.xml |
|---|---|
| Module Name | TeamViewerPS |
| online version | https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Set-TeamViewerPolicy.md |
| schema | 2.0.0 |
Change a TeamViewer policy.
Set-TeamViewerPolicy -ApiToken <SecureString> -Policy <Object> [-Name <String>] [-Settings <Object[]>]
[-WhatIf] [-Confirm] [<CommonParameters>]Set-TeamViewerPolicy -ApiToken <SecureString> -Policy <Object> -Property <Hashtable> [-WhatIf] [-Confirm]
[<CommonParameters>]Modifies settings of a TeamViewer policy.
PS /> Set-TeamViewerPolicy -Policy '730ee15a-1ea4-4d80-9cfe-5a01709d0a2f' -Name 'New Policy Name'Change the name of the given TeamViewer policy.
The TeamViewer API access token.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseNew name of the policy.
Type: String
Parameter Sets: ByParameters
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseObject that can be used to identify the policy. This can either be the policy ID (as string or GUID) or a policy object that has been received using other module functions.
Type: Object
Parameter Sets: (All)
Aliases: PolicyId
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseChange policy information using a hashtable object.
Valid hashtable keys are: name, settings
Type: Hashtable
Parameter Sets: ByProperties
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseChange settings of the TeamViewer policy. Must be objects with the following properties:
key: The label of a setting
value: The value of a setting
enforce: true or false. Enforced settings cannot be changed on the device
itself.
Type: Object[]
Parameter Sets: ByParameters
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.