You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command shown in Example 3 returns a collection of all the allowed domains that have the string value "fabrikam" anywhere in their Identity.
69
-
To do this, the command uses the Filter parameter and the filter value "*fabrikam*".
68
+
To do this, the command uses the Filter parameter and the filter value "\*fabrikam\*".
70
69
This filter value tells the Get-CsAllowedDomain cmdlet to return only those domains where the Identity (the only property you can filter on) includes the string value "fabrikam".
71
70
Domains such as fabrikam.com, fabrikam.net, and africa.fabrikam.org will all be returned by this command.
72
71
73
72
### -------------------------- Example 4 --------------------------
In Example 4, the Get-CsAllowedDomain cmdlet and the Where-Object cmdlet are used to return a collection of all the domains where no value has been entered for the ProxyFqdn property.
81
78
To carry out this task, the Get-CsAllowedDomain cmdlet is first called without any additional parameters in order to return a collection of all the allowed domains.
82
79
This collection is then piped to the Where-Object cmdlet, which selects only those allowed domains where the ProxyFqdn property is equal to a null value; a null value means that no value has been entered for ProxyFqdn.
83
-
To find all the domains that have a value of some kind configured for the ProxyFqdn property, use this syntax instead:
80
+
To find all the domains that have a value of some kind configured for the ProxyFqdn property, use this syntax instead:`Where-Object {$_.ProxyFqdn -ne $Null}`.
84
81
85
82
### -------------------------- Example 5 --------------------------
86
83
```
@@ -91,7 +88,6 @@ Example 5 returns all the allowed domains that have their health status checked
91
88
To do this, the Get-CsAllowedDomain cmdlet is first used to return a collection of all the domains on the allowed domains list.
92
89
That collection is then piped to the Where-Object cmdlet, which picks out only those domains where the MarkForMonitoring property is equal to True.
93
90
94
-
95
91
## PARAMETERS
96
92
97
93
### -Identity
@@ -122,7 +118,7 @@ To return all of the domains that have an Identity that begins with the letter "
122
118
123
119
To return all of the domains that have an Identity that ends with ".net", use this syntax: `-Filter "*.net"`
124
120
125
-
To return all of the domains that have an Identity that begins with the letter "r" or with the letter "g", use this syntax: `-Filter \[rg\]*`
121
+
To return all of the domains that have an Identity that begins with the letter "r" or with the letter "g", use this syntax: `-Filter [rg]*`
0 commit comments