Skip to content

Commit 09ba65c

Browse files
authored
Update Set-ArcConfig.md to allow removal of final entry
1 parent 5a11858 commit 09ba65c

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

exchange/exchange-ps/exchange/Set-ArcConfig.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,28 @@ The first four commands return the existing list of ARC sealers. The first ARC s
7373

7474
The last two commands remove the seventh ARC sealer that's displayed in the list.
7575

76+
### Example 4
77+
```powershell
78+
$arcSealer = 'fabrikam.com'
79+
$x = @(Get-ArcConfig | Select-Object -Expand ArcTrustedSealers)
80+
81+
$y = @($x.Split(","))
82+
$DomainsRemove = [System.Collections.ArrayList]($y)
83+
$DomainsRemove.Remove($arcSealer)
84+
85+
if ($DomainsToRemove.Count -eq 0) {
86+
Set-ArcConfig -Identity Default -ArcTrustedSealers " "
87+
}
88+
else {
89+
Set-ArcConfig -Identity Default -ArcTrustedSealers $DomainsRemove
90+
}
91+
```
92+
This examples removes a specific ARC sealer from the list. If, after removing this entry from the list, no other ARC Sealers exist, using the " " works around the below error if $DomainsToRemove is empty
93+
94+
```powershell
95+
(Cannot bind argument to parameter 'ArcTrustedSealers' because it is an empty array.)
96+
```
97+
7698
## PARAMETERS
7799

78100
### -Identity
@@ -99,9 +121,11 @@ The ArcTrustedSealers parameter specifies the domain name of the ARC sealers tha
99121
100122
The domain name must match the domain that's shown in the `d` tag in the **ARC-Seal** and **ARC-Message-Signature** headers in affected email messages (for example, fabrikam.com). You can use Outlook to see these headers.
101123

102-
To replace the existing list of ARC sealers with the values you specify, use the syntax `Domain1,Domain2,...DomainN`. To preserve existing values, be sure to include the file types that you want to keep along with the new values that you want to add.
124+
To replace the existing list of ARC sealers with the values you specify, use the syntax `Domain1,Domain2,...DomainN`. To preserve existing values, be sure to include the entries that you want to keep along with the new values that you want to add.
125+
126+
To add or remove values without affecting the other entries, see the Examples section in this topic.
103127

104-
To add or remove file types without affecting the other file type entries, see the Examples section in this topic.
128+
To completely clear the list, set this value to " " (a string with a single whitespace character)
105129

106130
```yaml
107131
Type: String[]

0 commit comments

Comments
 (0)