Skip to content

Commit e84e4ff

Browse files
committed
Updates to *-RemoteDomain cmdlets
Pers Issue #1728
1 parent edb0904 commit e84e4ff

File tree

4 files changed

+171
-109
lines changed

4 files changed

+171
-109
lines changed

exchange/exchange-ps/exchange/mail-flow/Get-RemoteDomain.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
3232
Get-RemoteDomain
3333
```
3434

35-
This example returns all remote domains configured in the Active Directory forest in which you run the command.
35+
This example returns a summary list of all remote domains in the organization.
3636

3737
### -------------------------- Example 2 --------------------------
3838
```
39-
Get-RemoteDomain Contoso
39+
Get-RemoteDomain -Identity Contoso | Format-List
4040
```
4141

42-
This example returns the configuration for the remote domain Contoso.
42+
This example returns detailed information for the remote domain named Contoso.
4343

4444
### -------------------------- Example 3 --------------------------
4545
```
4646
Get-RemoteDomain | Where {$_.TNEFEnabled -eq $false}
4747
```
4848

49-
This example queries Active Directory for all remote domains and displays only those remote domains for which Transport Neutral Encapsulation Format (TNEF) encoding isn't used.
49+
This example returns all domains where Transport Neutral Encapsulation Format (TNEF) encoding isn't used.
5050

5151
## PARAMETERS
5252

@@ -70,7 +70,13 @@ Accept wildcard characters: False
7070
```
7171
7272
### -Identity
73-
The Identity parameter specifies the remote domain you want to view. Enter either the GUID or name of the remote domain.
73+
The Identity parameter specifies the remote domain that you want to view. You can use any value that uniquely identifies the remote domain. For example:
74+
75+
- Name
76+
77+
- Distinguished name (DN)
78+
79+
- GUID
7480
7581
```yaml
7682
Type: RemoteDomainIdParameter

exchange/exchange-ps/exchange/mail-flow/New-RemoteDomain.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ For information about the parameter sets in the Syntax section below, see Exchan
1818
## SYNTAX
1919

2020
```
21-
New-RemoteDomain [-Name] <String> -DomainName <SmtpDomainWithSubdomains> [-Confirm] [-DomainController <Fqdn>]
21+
New-RemoteDomain [-Name] <String> -DomainName <SmtpDomainWithSubdomains>
22+
[-Confirm]
23+
[-DomainController <Fqdn>]
2224
[-WhatIf] [<CommonParameters>]
2325
```
2426

@@ -29,15 +31,17 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
2931

3032
### -------------------------- Example 1 --------------------------
3133
```
32-
New-RemoteDomain -DomainName Contoso.com -Name Contoso
34+
New-RemoteDomain -DomainName *.contoso.com -Name Contoso
3335
```
3436

35-
This example creates the remote domain Contoso.
37+
This example creates the remote domain named Contoso for the domain contoso.com and all subdomains.
3638

3739
## PARAMETERS
3840

3941
### -DomainName
40-
The DomainName parameter specifies the SMTP domain that you want to establish as a remote domain. Valid input for the DomainName parameter is an SMTP domain. You can use a wildcard character to specify all subdomains of a specified domain, as shown in the following example: \*.contoso.com. However, you can't embed a wildcard character, as shown in the following example: domain.\*.contoso.com. The domain name string may contain a maximum of 256 characters.
42+
The DomainName parameter specifies the SMTP domain that you want to establish as a remote domain. A valid value is an SMTP domain (for example, contoso.com). The maximum length is 256 characters.
43+
44+
You can use the wildcard character (\*) to specify a domain and all subdomains (for example: \*.contoso.com), but you can't embed the wildcard character (for example, domain.\*.contoso.com).
4145

4246
```yaml
4347
Type: SmtpDomainWithSubdomains
@@ -52,7 +56,7 @@ Accept wildcard characters: False
5256
```
5357
5458
### -Name
55-
The Name parameter specifies a unique name for the remote domain object.
59+
The Name parameter specifies a unique name for the remote domain object. The maximum length is 64 characters. If the value contains spaces, enclose the value in quoatation marks (").
5660
5761
```yaml
5862
Type: String

exchange/exchange-ps/exchange/mail-flow/Remove-RemoteDomain.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ This example removes the remote domain object named Contoso.
3737
## PARAMETERS
3838

3939
### -Identity
40-
The Identity parameter specifies the remote domain you want to remove. Enter either the GUID or name of the remote domain.
40+
The Identity parameter specifies the remote domain that you want to remove. You can use any value that uniquely identifies the remote domain. For example:
41+
42+
- Name
43+
44+
- Distinguished name (DN)
45+
46+
- GUID
4147

4248
```yaml
4349
Type: RemoteDomainIdParameter

0 commit comments

Comments
 (0)