Skip to content

Commit 7de822b

Browse files
authored
Merge pull request MicrosoftDocs#1561 from MicrosoftDocs/master
merge master into versioning
2 parents f0147f5 + 0ec0bf4 commit 7de822b

File tree

224 files changed

+4481
-1961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+4481
-1961
lines changed

.openpublishing.publish.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@
7979
"nuget_feed": "https://www.myget.org/F/op-dev/api/v2"
8080
}
8181
]
82-
}
82+
}

exchange/docs-conceptual/exchange-eop/connect-to-exchange-online-protection-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Exchange Online Protection PowerShell allows you to manage your Exchange Online
4141

4242
`Files cannot be loaded because running scripts is disabled on this system. Provide a valid certificate with which to sign the files.`
4343

44-
To enable Windows PowerShell to run signed scripts, run the following command in an elevated Windows PowerShell window (a Windows PowerShell window you open by selecting **Run as administrator**):
44+
To require all scripts that you download from the internet are signed by a trusted publisher, run the following command in an elevated Windows PowerShell window (a Windows PowerShell window you open by selecting **Run as administrator**):
4545

4646
```
4747
Set-ExecutionPolicy RemoteSigned
@@ -77,7 +77,7 @@ Exchange Online Protection PowerShell allows you to manage your Exchange Online
7777
3. Run the following command:
7878
7979
```
80-
Import-PSSession $Session
80+
Import-PSSession $Session -DisableNameChecking
8181
```
8282
8383
[!NOTE]

exchange/docs-conceptual/exchange-online/connect-to-exchange-online-powershell/connect-to-exchange-online-powershell.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
4545

4646
`Files cannot be loaded because running scripts is disabled on this system. Provide a valid certificate with which to sign the files.`
4747

48-
To enable Windows PowerShell to run signed scripts, run the following command in an elevated Windows PowerShell window (a Windows PowerShell window you open by selecting **Run as administrator**):
48+
To require all PowerShell scripts that you download from the internet are signed by a trusted publisher, run the following command in an elevated Windows PowerShell window (a Windows PowerShell window you open by selecting **Run as administrator**):
4949

50-
```
51-
Set-ExecutionPolicy RemoteSigned
52-
```
50+
```
51+
Set-ExecutionPolicy RemoteSigned
52+
```
5353
5454
You need to configure this setting only once on your computer, not every time you connect.
5555
@@ -76,11 +76,17 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
7676
- For Office 365 operated by 21Vianet, use the _ConnectionUri_ value: `https://partner.outlook.cn/PowerShell`
7777
7878
- For Office 365 Germany, use the _ConnectionUri_ value: `https://outlook.office.de/powershell-liveid/`
79+
80+
- If you're behind a proxy server, run this command first: `$ProxyOptions = New-PSSessionOption -ProxyAccessType <Value>`, where the _ProxyAccessType_ value is `IEConfig`, `WinHttpConfig`, or `AutoDetect`.
81+
82+
Then, add the following parameter and value to the end of the $Session = ... command: `-SessionOption $ProxyOptions`.
83+
84+
For more information, see [New-PSSessionOption](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-pssessionoption).
7985
8086
3. Run the following command.
8187
8288
```
83-
Import-PSSession $Session
89+
Import-PSSession $Session -DisableNameChecking
8490
```
8591
8692
> [!NOTE]

exchange/docs-conceptual/exchange-server/connect-to-exchange-servers-using-remote-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ If you don't have the Exchange management tools installed on your local computer
4545

4646
`Files cannot be loaded because running scripts is disabled on this system. Provide a valid certificate with which to sign the files.`
4747

48-
To enable Windows PowerShell to run signed scripts, run the following command in an elevated Windows PowerShell window (a Windows PowerShell window you open by selecting **Run as administrator**):
48+
To require all scripts that you download from the internet are signed by a trusted publisher, run the following command in an elevated Windows PowerShell window (a Windows PowerShell window you open by selecting **Run as administrator**):
4949

5050
```
5151
Set-ExecutionPolicy RemoteSigned
@@ -77,7 +77,7 @@ If you don't have the Exchange management tools installed on your local computer
7777
3. Run the following command:
7878
7979
```
80-
Import-PSSession $Session
80+
Import-PSSession $Session -DisableNameChecking
8181
```
8282
8383
> [!NOTE]

exchange/docs-conceptual/exchange-server/control-remote-powershell-access-to-exchange-servers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ For additional management tasks related to remote PowerShell, see [Connect to Ex
3434
3535
## Use the Exchange Management Shell to enable or disable remote PowerShell access for a user
3636

37-
This example disable remote PowerShell access for the user named Therese Lindqvist.
37+
This example disables remote PowerShell access for the user named Therese Lindqvist.
3838

3939
```
4040
Set-User "Therese Lindqvist" -RemotePowerShellEnabled $false
@@ -43,7 +43,7 @@ Set-User "Therese Lindqvist" -RemotePowerShellEnabled $false
4343
This example enables remote PowerShell access for the user named Sirirat Kitjakarn.
4444

4545
```
46-
Set-User "Sirirat Kitjakarn" -RemotePowerShellEnabled $false
46+
Set-User "Sirirat Kitjakarn" -RemotePowerShellEnabled $true
4747
```
4848

4949
## Use the Exchange Management Shell to disable remote PowerShell access for many users
@@ -136,4 +136,4 @@ To display only those users who have access to remote PowerShell, run the follow
136136

137137
```
138138
Get-User -ResultSize unlimited -Filter {RemotePowerShellEnabled -eq $true}
139-
```
139+
```

exchange/docs-conceptual/exchange-server/exchange-cmdlet-syntax.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Exchange PowerShell help follows conventions that indicate what's required or op
3232
|-|A hyphen indicates a parameter. For example, `-Identity`.|
3333
|\< \>|Angle brackets indicate the possible values for a parameter. For example, `-Location <ServerName>` or `-Enabled <$true | $false>`.|
3434
|[ ]|Square brackets indicate optional parameters and their values. For example, `[-WhatIf <SwitchParameter>]`. Parameter-value pairs that aren't enclosed in square brackets are required.|
35-
|\| |Pipe symbols in parameter values indicate a choice between values. For example, `-Enabled <$true | $false>` indicates the _Enabled_ parameter can have the value `$true` or `$false`.|
35+
|\| |Pipe symbols in parameter values indicate a choice between values. For example, -Enabled \<$true \| $false\> indicates the _Enabled_ parameter can have the value `$true` or `$false`.|
3636

3737
These command conventions help you understand how a command is constructed. With the exception of the hyphen that indicates a parameter, you don't use these symbols as they're described in the table when you run cmdlets in Exchange PowerShell.
3838

@@ -118,12 +118,12 @@ The following table shows the valid operators that you can use in an Exchange co
118118

119119
|**Operator**|**Description**|
120120
|:-----|:-----|
121-
|**=** | The equal sign is used as an assignment character. The value on the right side of the equal sign is assigned to the variable on the left side of the equal sign. The following characters are also assignment characters: <br/> **+=** Add the value on the right side of the equal sign to the current value that's contained in the variable on the left side of the equal sign. <br/> **-=** Subtract the value on the right side of the equal sign from the current value that's contained in the variable on the left side of the equal sign. <br/> **\*=** Multiply the current value of the variable on the left side of the equal sign by the value that's specified on the right side of the equal sign. <br/> **/=** Divide the current value of the variable on the left side of the equal sign by the value that's specified on the right side of the equal sign. <br/> **%=** Modify the current value of the variable on the left side of the equal sign by the value that's specified on the right side of the equal sign. <br/> |
121+
|**=** | The equal sign is used as an assignment character. The value on the right side of the equal sign is assigned to the variable on the left side of the equal sign. The following characters are also assignment characters: <br/> • **+=**: Add the value on the right side of the equal sign to the current value that's contained in the variable on the left side of the equal sign. <br/> • **-=**: Subtract the value on the right side of the equal sign from the current value that's contained in the variable on the left side of the equal sign. <br/> • **\*=**: Multiply the current value of the variable on the left side of the equal sign by the value that's specified on the right side of the equal sign. <br/> • **/=**: Divide the current value of the variable on the left side of the equal sign by the value that's specified on the right side of the equal sign. <br/> • **%=**: Modify the current value of the variable on the left side of the equal sign by the value that's specified on the right side of the equal sign. |
122122
|**:** | A colon can be used to separate a parameter's name from the parameter's value. For example, `-Enabled:$True`. Using a colon is optional with all parameter types except switch parameters. For more information about switch parameters, see [Parameters](https://technet.microsoft.com/library/bc81f639-c822-4b2b-a692-694c43f5f57e.aspx). |
123123
|**!** | The exclamation point is a logical **NOT** operator. When it is used with the equal ( **=** ) sign, the combined pair means "not equal to." |
124124
|**[ ]** | Brackets are used to specify the index value of an array position. Index values are offsets that start at zero. For example, `$Red[9]` refers to the tenth index position in the array, `$Red`. <br/> Brackets can also be used to assign a type to a variable (for example, `$A=[XML] "<Test><A>value</A></Test>"`). The following variable types are available: `Array`, `Bool`, `Byte`, `Char`, `Char[]`, `Decimal`, `Double`, `Float`, `Int`, `Int[]`, `Long`, `Long[]`, `RegEx`, `Single`, `ScriptBlock`, `String`, `Type`, and `XML.` |
125-
|**{ }** |Braces are used to include an expression in a command. For example, `Get-Process | Where {$_.HandleCount -gt 400}` |
126-
|**\|** |The pipe symbol is used when one cmdlet pipes a result to another cmdlet. For example, `Get-Mailbox -Server SRV1 | Set-Mailbox -ProhibitSendQuota 2GB`. |
125+
|**{ }** |Braces are used to include an expression in a command. For example, Get-Process \| Where {$\_.HandleCount -gt 400} |
126+
|**\|** |The pipe symbol is used when one cmdlet pipes a result to another cmdlet. For example, Get-Mailbox -Server SRV1 \| Set-Mailbox -ProhibitSendQuota 2GB. |
127127
|**\>** |The right-angle bracket is used to send the output of a command to a file, and the contents of the file are overwritten. For example, `Get-TransportRulePredicate > "C:\My Documents\Output.txt"`. |
128128
|**\>\>** |Double right-angle brackets are used to append the output of a command to an existing file. If the file doesn't exist, a new file is created. For example, `Get-TransportRulePredicate >> "C:\My Documents\Output.txt"`. |
129129
|**"** |Double quotation marks are used to enclose text strings that contains spaces. |
@@ -133,9 +133,9 @@ The following table shows the valid operators that you can use in an Exchange co
133133
|**..** |Double-periods indicate a value range. For example, if an array contains several indexes, you can return the values of all indexes between the second and fifth indexes by running the command: `$Blue[2..5]`. |
134134
|**+** |The **+** operator adds two values together. For example, `6 + 6` equals `12`. |
135135
|**-** |The **-** operator subtracts one value from another value (for example, `12 - 6` equals `6`) or indicates a negative number (for example, `-6 * 6` equals `-36`). |
136-
|**\*** |You can use the wildcard character to match strings (for example `Get-User | Where-Object {$_.Department -like 'Sales*'}`), multiply numeric values (for example, `6 * 6` equals `36`), or repeat the string value the specified number of times (for example, `"Test" * 3` equals `TestTestTest`).|
136+
|**\*** |You can use the wildcard character to match strings (for example, Get-User \| Where-Object {$\_.Department -like 'Sales*'}), multiply numeric values (for example, `6 * 6` equals `36`), or repeat the string value the specified number of times (for example, `"Test" * 3` equals `TestTestTest`).|
137137
|**/** |The **/** operator divides one value by another. For example, `6 / 6` equals `1`. |
138-
|**%** |In a numerical evaluation, the **%** operator returns the remainder from a division operator. For example, `6 % 4` equals `2`. <br/> In a pipeline, the percent character ( `%` ) is shorthand for the **ForEach-Object** cmdlet. For example, `Import-Csv c:\MyFile.csv | ForEach-Object {Set-Mailbox $_.Identity -Name $_.Name}` is the same as `Import-Csv c:\MyFile.csv | % {Set-Mailbox $_.Identity -Name $_.Name}`. For more information, see [Pipelining](https://technet.microsoft.com/library/59411ed3-926b-4eec-a462-84e6b26056c9.aspx). <br/> |
139-
|**?** |The question mark character ( **?** ) is shorthand for the **Where-Object** cmdlet. For example, `Get-Alias | Where-Object {$_.Definition -eq "Clear-Host"}` is the same as `Get-Alias | ? {$_.Definition -eq "Clear-Host"}`. |
138+
|**%** |In a numerical evaluation, the **%** operator returns the remainder from a division operator. For example, `6 % 4` equals `2`. <br/> In a pipeline, the percent character ( `%` ) is shorthand for the **ForEach-Object** cmdlet. For example, Import-Csv c:\MyFile.csv \| ForEach-Object {Set-Mailbox $\_.Identity -Name $\_.Name} is the same as Import-Csv c:\MyFile.csv \| % {Set-Mailbox $\_.Identity -Name $\_.Name}. For more information, see [Pipelining](https://technet.microsoft.com/library/59411ed3-926b-4eec-a462-84e6b26056c9.aspx). |
139+
|**?** |The question mark character ( **?** ) is shorthand for the **Where-Object** cmdlet. For example, Get-Alias \| Where-Object {$\_.Definition -eq "Clear-Host"} is the same as Get-Alias \| ? {$\_.Definition -eq "Clear-Host"}|
140140

141141

0 commit comments

Comments
 (0)