Skip to content

Commit df03058

Browse files
authored
Merge pull request #12556 from supermistag/patch-1
Update Set-ArcConfig.md to allow removal of final entry
2 parents 8a713b9 + 7aefe90 commit df03058

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

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

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,27 @@ 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+
93+
This example removes the specified ARC sealer from the list (`$arcSealer`).
94+
95+
If no other ARC sealers exist after removing this entry from the list, using the value `" "` for the ArcTrustedSealers parameter avoids a bind argument error if the `$DomainsToRemove` value is empty.
96+
7697
## PARAMETERS
7798

7899
### -Identity
@@ -99,9 +120,11 @@ The ArcTrustedSealers parameter specifies the domain name of the ARC sealers tha
99120
100121
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.
101122

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.
123+
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.
124+
125+
To add or remove values without affecting the other entries, see the Examples section in this article.
103126

104-
To add or remove file types without affecting the other file type entries, see the Examples section in this topic.
127+
To empty the list, use the value `" "` (a space enclosed in double quotation marks).
105128

106129
```yaml
107130
Type: String[]

0 commit comments

Comments
 (0)