Skip to content

Commit 856cd44

Browse files
committed
Adds an additional example to Set-TeamViewerDevicesPolicy
The example shows how to use the `-ExcludedDeviceIds` parameter for multiple devices. Fixes: teamviewer#2
1 parent 666cbcd commit 856cd44

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Set-TeamViewerDevicesPolicy/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ There is also the option to exclude specific devices by their device ID.
2323
.\Set-TeamViewerDevicesPolicy.ps1 -PolicyId "Pol123" -FilterGroupNames "Group1"
2424
```
2525

26+
### Set the policy of all but two specific devices in a company to "inherit"
27+
28+
```
29+
.\Set-TeamViewerDevicesPolicy.ps1 -ExcludedDeviceIds "d12345678","d90123456"
30+
```
31+
2632
## More help
2733

2834
To get further help about the script and its parameters, execute the

Set-TeamViewerDevicesPolicy/Set-TeamViewerDevicesPolicy.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
Optionally apply policy changes only to devices that are member of the groups
3939
with the given IDs.
4040
41-
.PARAMETER ExcludeDeviceIds
41+
.PARAMETER ExcludedDeviceIds
4242
Optionally exclude devices with the given IDs from the policy changes.
4343
4444
.EXAMPLE
@@ -53,6 +53,9 @@
5353
.EXAMPLE
5454
.\Set-TeamViewerDevicesPolicy.ps1 -PolicyId '388e8704-0f4a-4b4d-bdbf-2be823ae690f'
5555
56+
.EXAMPLE
57+
.\Set-TeamViewerDevicesPolicy.ps1 -ExcludedDeviceIds 'd12345678','d90123456'
58+
5659
.NOTES
5760
Copyright (c) 2019 TeamViewer GmbH
5861
See file LICENSE.txt

0 commit comments

Comments
 (0)