Skip to content

Commit 6e8973c

Browse files
committed
Merge branch 'master' into ChrisdaCopyOfQinezh-test
2 parents e1b465a + 8bcacb9 commit 6e8973c

File tree

526 files changed

+9791
-1648
lines changed

Some content is hidden

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

526 files changed

+9791
-1648
lines changed

.openpublishing.publish.config.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,39 +234,33 @@
234234
}
235235
],
236236
"notification_subscribers": [],
237+
"sync_notification_subscribers": [],
237238
"branches_to_filter": [],
238239
"git_repository_branch_open_to_public_contributors": "master",
239240
"skip_source_output_uploading": false,
240241
"need_preview_pull_request": true,
242+
"enable_incremental_build": false,
241243
"contribution_branch_mappings": {},
242244
"dependent_repositories": [
243245
{
244246
"path_to_root": "_themes",
245247
"url": "https://github.com/Microsoft/templates.docs.msft",
246248
"branch": "master",
247249
"branch_mapping": {}
248-
},
249-
{
250-
"path_to_root": "_themes.pdf",
251-
"url": "https://github.com/Microsoft/templates.docs.msft.pdf",
252-
"branch": "master",
253-
"branch_mapping": {}
254250
}
255251
],
256252
"branch_target_mapping": {
257253
"live": [
258-
"Publish",
259-
"Pdf"
254+
"Publish"
260255
]
261256
},
262-
"need_generate_pdf_url_template": true,
257+
"need_generate_pdf_url_template": false,
263258
"targets": {
264259
"Pdf": {
265260
"template_folder": "_themes.pdf"
266261
}
267262
},
268263
"need_generate_intellisense": false,
269-
"enable_incremental_build": false,
270264
"dependent_packages": [
271265
{
272266
"path_to_root": "_dependentPackages/azurecli.plugins",
@@ -282,4 +276,4 @@
282276
"nuget_feed": "https://www.myget.org/F/op/api/v2"
283277
}
284278
]
285-
}
279+
}

exchange/docfx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"content": [
44
{
55
"files": [
6-
"**/*.md"
6+
"**/*.md",
7+
"**/*.yml"
78
],
89
"src": "docs-conceptual",
910
"version": "exchange-ps",

exchange/docs-conceptual/app-only-auth-powershell-v2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.custom:
1414
ms.assetid:
1515
search.appverid: MET150
1616
ROBOTS: NOINDEX, NOFOLLOW
17-
description: "Learn about using the Exchange Online V2 module in scripts and other long-running tasks with Modern Authentication and app-only authentication."
17+
description: "Learn about using the Exchange Online V2 module in scripts and other long-running tasks with modern authentication and app-only authentication."
1818
---
1919

2020
# App-only authentication for unattended scripts in the EXO V2 module
@@ -34,7 +34,7 @@ To update from an earlier version of the of the EXO V2 module, run the following
3434
Update-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.3-Preview -AllowPrerelease
3535
```
3636

37-
Auditing and reporting scenarios in Exchange Online often involve scripts that run unattended. In most cases, these unattended scripts access Exchange Online PowerShell using Basic authentication (a username and password). Even when the connection to Exchange Online PowerShell uses Modern authentication, the credentials are stored in a local file or a secret vault that's access at run-time.
37+
Auditing and reporting scenarios in Exchange Online often involve scripts that run unattended. In most cases, these unattended scripts access Exchange Online PowerShell using Basic authentication (a username and password). Even when the connection to Exchange Online PowerShell uses modern authentication, the credentials are stored in a local file or a secret vault that's accessed at run-time.
3838

3939
Because storing user credentials locally is not a safe practice, we're releasing this feature to support authentication for unattended scripts (automation) scenarios using AzureAD applications and self-signed certificates.
4040

@@ -72,13 +72,13 @@ The following examples show how to use the Exchange Online PowerShell V2 module
7272
7373
## How does it work?
7474
75-
The EXO V2 module uses the Active Directory Authentication Library to fetch an app-only token using the application Id, tenant Id & certificate thumbprint. The application object provisioned inside Azure AD has a Directory Role assigned to it, which is returned in the access token. Exchange Online configures the session RBAC using the directory role information that's available in the token.
75+
The EXO V2 module uses the Active Directory Authentication Library to fetch an app-only token using the application Id, tenant Id (organization), and certificate thumbprint. The application object provisioned inside Azure AD has a Directory Role assigned to it, which is returned in the access token. Exchange Online configures the session RBAC using the directory role information that's available in the token.
7676
7777
## Setup app-only authentication
7878
7979
An initial onboarding is required for authentication using application objects. Application and service principal are used interchangeably, but an application is like a class object while a service principal is like an instance of the class. You can learn more about this at [Application and service principal objects in Azure Active Directory](https://docs.microsoft.com/azure/active-directory/develop/app-objects-and-service-principals).
8080
81-
For a detailed visual flow bout creating applications in Azure AD, see <https://aka.ms/azuread-app>.
81+
For a detailed visual flow about creating applications in Azure AD, see <https://aka.ms/azuread-app>.
8282
8383
1. Register the application in Azure AD at <https://portal.azure.com>.
8484

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
2121

2222
> [!NOTE]
2323
>
24-
> - We're eventually going to [disable Basic authentication in Exchange Online](https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-april-2020-update/ba-p/1275508), and the connection method described in this topic uses Basic authentication. We recommend that you use the [Exchange Online PowerShell V2 module](exchange-online-powershell-v2.md) to connect to Exchange Online PowerShell, because it uses Modern authentication in all scenarios.
24+
> - We're eventually going to [disable Basic authentication in Exchange Online](https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-april-2020-update/ba-p/1275508), and the connection method described in this topic uses Basic authentication. We recommend that you use the [Exchange Online PowerShell V2 module](exchange-online-powershell-v2.md) to connect to Exchange Online PowerShell, because it uses modern authentication in all scenarios.
2525
>
2626
> - The Exchange Online PowerShell V2 module works with multi-factor authentication (MFA). For MFA connection instructions using the older Exchange Online Remote PowerShell Module, see [Connect to Exchange Online PowerShell using multi-factor authentication](mfa-connect-to-exchange-online-powershell.md).
2727
>
@@ -64,7 +64,7 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
6464
To verify that Basic authentication is enabled for WinRM, run this command **in a Command Prompt**:
6565

6666
> [!NOTE]
67-
> You must temporarily enable WinRM to run the following commands. You can enable it by running "winrm quickconfig".
67+
> You must temporarily enable WinRM to run the following commands. You can enable it by running the command: `winrm quickconfig`.
6868
6969
```dos
7070
winrm get winrm/config/client/auth
@@ -105,11 +105,11 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
105105

106106
- For Office 365 Germany, use the _ConnectionUri_ value: `https://outlook.office.de/powershell-liveid/`
107107

108-
- For Microsoft 365 Government Community Cloud High (GCC High), use the _ConnectionUri_ value: `https://outlook.office365.us/powershell-liveid/`
108+
- For Microsoft 365 GCC High, use the _ConnectionUri_ value: `https://outlook.office365.us/powershell-liveid/`
109109

110110
- For Microsoft 365 DoD, use the _ConnectionUri_ value: `https://webmail.apps.mil/powershell-liveid`
111111

112-
- 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`.
112+
- If you're behind a proxy server, run this command first: `$ProxyOptions = New-PSSessionOption -ProxyAccessType <Value>`, where \<Value\> is `IEConfig`, `WinHttpConfig`, or `AutoDetect`.
113113

114114
Then, add the following parameter and value to the end of the $Session = ... command: `-SessionOption $ProxyOptions`.
115115

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ In standalone Exchange Online Protection (EOP) organizations without Exchange On
5555
To verify that Basic authentication is enabled for WinRM, run this command **in a Command Prompt**:
5656

5757
> [!NOTE]
58-
> You must temporarily enable WinRM to run the following commands. You can enable it by running "winrm quickconfig".
58+
> You must temporarily enable WinRM to run the following commands. You can enable it by running the command: `winrm quickconfig`.
5959
6060
```dos
6161
winrm get winrm/config/client/auth

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Security & Compliance Center PowerShell allows you to manage your Security & Com
6969
To verify that Basic authentication is enabled for WinRM, run this command **in a Command Prompt**:
7070

7171
> [!NOTE]
72-
> You must temporarily enable WinRM to run the following commands. You can enable it by running "winrm quickconfig".
72+
> You must temporarily enable WinRM to run the following commands. You can enable it by running the command: `winrm quickconfig`.
7373
7474
```dos
7575
winrm get winrm/config/client/auth
@@ -105,7 +105,9 @@ Security & Compliance Center PowerShell allows you to manage your Security & Com
105105

106106
- For Office 365 Germany, use the _ConnectionUri_ value: `https://ps.compliance.protection.outlook.de/powershell-liveid/`.
107107

108-
- For Microsoft 365 Government Community Cloud High (GCC High), use the _ConnectionUri_ value: `https://ps.compliance.protection.office365.us/powershell-liveid/`.
108+
- For Microsoft 365 GCC High, use the _ConnectionUri_ value: `https://ps.compliance.protection.office365.us/powershell-liveid/`.
109+
110+
- For Microsoft 365 DoD, use the _ConnectionUri_ value: `https://l5.ps.compliance.protection.office365.us/powershell-liveid/`.
109111

110112
3. Run the following command:
111113

exchange/docs-conceptual/exchange-online-powershell-v2.md

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Exchange Online PowerShell with Modern Authentication using V2 Module
2+
title: Exchange Online PowerShell with modern authentication using V2 Module
33
ms.author: chrisda
44
author: chrisda
55
manager: dansimp
@@ -13,10 +13,10 @@ ms.collection: Strat_EX_Admin
1313
ms.custom:
1414
ms.assetid:
1515
search.appverid: MET150
16-
description: "Learn how to install and use the Exchange Online PowerShell V2 module to connect to Exchange Online PowerShell with Modern Authentication."
16+
description: "Learn how to install and use the Exchange Online PowerShell V2 module to connect to Exchange Online PowerShell with modern authentication."
1717
---
1818

19-
# Use the Exchange Online PowerShell with Modern Authentication using V2 module
19+
# Use the Exchange Online PowerShell with modern authentication using V2 module
2020

2121
The Exchange Online PowerShell V2 module (abbreviated as the EXO V2 module) enables admins to connect to their Exchange Online environment in Microsoft 365 to retrieve data, create new objects, update existing objects, remove objects as well as configure Exchange Online and its features.
2222

@@ -32,7 +32,7 @@ Connect-ExchangeOnline -EnableErrorReporting -LogDirectoryPath <Path to store lo
3232

3333
The Exchange Online PowerShell V2 module contains a small set of new cmdlets that are optimized for bulk data retrieval scenarios (think: thousands and thousands of objects). Until you create a session to connect to your Exchange Online organization, you'll only see these new cmdlets in the module. After you connect to your Exchange Online organization, you'll see all of the older remote PowerShell cmdlets.
3434

35-
The EXO V2 module use Modern authentication for all cmdlets. You can't use Basic authentication in the EXO V2 module; however, you still need to configure the Basic authentication setting in WinRM as described later in this topic.
35+
The EXO V2 module use modern authentication for all cmdlets. You can't use Basic authentication in the EXO V2 module; however, you still need to configure the Basic authentication setting in WinRM as described later in this topic.
3636

3737
The new cmdlets in the EXO V2 module are meant to replace their older, less efficient equivalents. However, the original cmdlets are still available in the EXO V2 module for backwards compatibility **after** you create a session to connect to your Exchange Online organization.
3838

@@ -67,17 +67,11 @@ You can download the EXO V2 module from the PowerShell gallery [here](https://ww
6767
- You can use the following versions of Windows:
6868

6969
- Windows 10
70-
7170
- Windows 8.1
72-
7371
- Windows Server 2019
74-
7572
- Windows Server 2016
76-
7773
- Windows Server 2012 or Windows Server 2012 R2
78-
7974
- Windows 7 Service Pack 1 (SP1)<sup>*</sup>
80-
8175
- Windows Server 2008 R2 SP1<sup>*</sup>
8276

8377
<sup>\*</sup> This version of windows has reached end of support, and is now only supported when running in Azure virtual machines. To use this version of Windows, you need to install the Microsoft .NET Framework 4.5 or later and then the Windows Management Framework 5.1. For more information, see [Windows Management Framework 5.1](https://aka.ms/wmf5download).
@@ -87,7 +81,7 @@ You can download the EXO V2 module from the PowerShell gallery [here](https://ww
8781
To verify that Basic authentication is enabled for WinRM, run this command **in a Command Prompt**:
8882

8983
> [!NOTE]
90-
> You must temporarily enable WinRM to run the following commands. You can enable it by running "winrm quickconfig".
84+
> You must temporarily enable WinRM to run the following commands. You can enable it by running the command: `winrm quickconfig`.
9185
9286
```dos
9387
winrm get winrm/config/client/auth
@@ -241,9 +235,9 @@ Get-EXOCASMailbox -Properties EwsEnabled, MAPIBlockOutlookNonCachedMode -Propert
241235

242236
We've also included a Minimum property set (or *minset*) in the available property sets that includes a bare minimum set of properties for the cmdlet output.
243237

244-
- If you don't use the *PropertySets* or *Properties* parameters, you automatically get the properties that are included in the Minimum property set.
238+
- If you don't use the *PropertySets* or *Properties* parameters, you automatically get the properties in the Minimum property set.
245239

246-
- If you use the *PropertySets* or *Properties* parameters, you you only get the specified properties.
240+
- If you use the *PropertySets* or *Properties* parameters, you get the specified properties **and** the properties in the Minimum property set.
247241

248242
Either way, the cmdlet output will contain far fewer properties, and the time it takes to return those results will be much faster.
249243

@@ -257,16 +251,8 @@ In contrast, the same **Get-Mailbox** cmdlet would return at least 230 propertie
257251

258252
For details about the property sets that are available in EXO V2 module cmdlets, see [Property sets in Exchange Online PowerShell V2 cmdlets](cmdlet-property-sets.md) or the individual EXO V2 module cmdlet reference topics.
259253

260-
EXO cmdlets also provide a way to retrieve all properties for an object by using the _ProperySets_ parameter with the value `All`.
261-
262-
The following example returns all properties for the 10 mailboxes:
263-
264-
```PowerShell
265-
Get-EXOMailbox -ResultSize 10 -PropertySets All
266-
```
267-
268254
> [!NOTE]
269-
> We highly discourage using the _PropertySets_ parameter with the value `All` because it slows down the cmdlet and reduces reliability. Always use the _PropertySets_ and _Properties_ parameters to retrieve only the required properties.
255+
> Although you can retrieve all properties for an object by using the _PropertySets_ parameter with the value All, we highly discourage this because it slows down the cmdlet and reduces reliability. Always use the _PropertySets_ and _Properties_ parameters to retrieve the minimum number of properties.
270256
271257
For more information about filtering in the EXO V2 module, see [Filters in the Exchange Online V2 module](filters-v2.md).
272258

@@ -325,7 +311,7 @@ For more information about filtering in the EXO V2 module, see [Filters in the E
325311

326312
- Use EXO V2 cmdlets even if WinRM Basic Auth is disabled on client machine. Note that remote PowerShell cmdlets require WinRM Basic Auth, and they won't be available if it's disabled.
327313

328-
- Identity parameter for V2 cmdlets now supports Name and Alias as well. Note that using Alias or Name slows down the performance of V2 cmdlets, so we don't recommend using them.
314+
- Identity parameter for V2 cmdlets now supports Name and Alias as well. Note that using Alias or Name slows down the performance of V2 cmdlets, so we don't recommend using them.
329315

330316
- Fixed issue where the data type of attributes returned by V2 cmdlet was different from remote PowerShell cmdlets. We still have few attributes which have differing data types, and we plan to handle them in coming months.
331317

exchange/docs-conceptual/filters-v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ The following operators are fully supported for all string formats in the EXO V2
5151
- -not
5252
- -lt
5353
- -gt
54+
- -like
55+
- -notlike
5456

5557
The -like and -notlike operators are limited in using wildcards (*). Specifically, you can only use wildcards at the beginning of a string value, at the end of a string value, or both.
5658

exchange/docs-conceptual/index.md

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)