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
Copy file name to clipboardExpand all lines: exchange/docs-conceptual/exchange-online/exchange-online-powershell-v2/exchange-online-powershell-v2.md
+14-9Lines changed: 14 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ description: "Learn how to download and use the Exchange Online PowerShell V2 mo
18
18
19
19
# Use the Exchange Online PowerShell V2 module
20
20
21
-
The Exchange Online PowerShell V2 module (abbreviated as the EXO V2 module) enables admins to connect to their Exchange Online environment in Office 365 to retrieve data, create new objects, update existing objects, remove objects as well as configure Exchange Online & its features.
21
+
The Exchange Online PowerShell V2 module (abbreviated as the EXO V2 module) enables admins to connect to their Exchange Online environment in Office 365 to retrieve data, create new objects, update existing objects, remove objects as well as configure Exchange Online and its features.
22
22
23
23
## Report bugs and issues
24
24
@@ -34,9 +34,11 @@ Connect-ExchangeOnline -EnableErrorReporting -LogDirectoryPath <Path to store lo
34
34
35
35
## How the EXO V2 module works
36
36
37
-
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). It also contains the 700 or more older remote PowerShell cmdlets baked into the same module. Note that after you install the EXO V2 module from the PowerShell Gallery, you only see new cmdlets in the module. You'll see the older remote PowerShell cmdlets after you create a session to connect to your Exchange Online environment. All the cmdlets in the V2 module use Modern auth for authentication. You can't use Basic auth in the EXO V2 module.
37
+
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.
38
38
39
-
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.
39
+
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.
40
+
41
+
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.
40
42
41
43
The new cmdlets in the EXO V2 module are listed in the following table:
42
44
@@ -57,7 +59,7 @@ The new cmdlets in the EXO V2 module are listed in the following table:
57
59
58
60
You can download the EXO V2 module from the PowerShell gallery [here](https://www.powershellgallery.com/packages/ExchangeOnlineManagement/).
59
61
60
-
> [!NOTE]
62
+
> [!NOTE]
61
63
> The latest version of PowerShell that's currently supported for the EXO V2 module is PowerShell 5.1. Support for PowerShell 6.0 or later is currently a work in progress and will be released soon. This also implies that EXO PowerShell V2 module won't work in Linux or Mac as of now. Support for Linux and Mac is a work in progress and will be announced soon.
62
64
63
65
### What do you need to know before you begin?
@@ -88,7 +90,7 @@ You can download the EXO V2 module from the PowerShell gallery [here](https://ww
88
90
winrm get winrm/config/client/auth
89
91
```
90
92
91
-
If you don't see the value `Basic = true`, you need to run this command to enable basic authentication for WinRM:
93
+
If you don't see the value `Basic = true`, you need to run this command to enable Basic authentication for WinRM:
92
94
93
95
```
94
96
winrm set winrm/config/client/auth @{Basic="true"}
@@ -98,6 +100,9 @@ You can download the EXO V2 module from the PowerShell gallery [here](https://ww
98
100
99
101
> The WinRM client cannot process the request. Basic authentication is currently disabled in the client configuration. Change the client configuration and try the request again.
100
102
103
+
> [!NOTE]
104
+
> We never send the username and password combination here, but the Basic auth header is required to transport the session's OAuth token, since the client-side WinRM implementation has no support for OAuth.
105
+
101
106
### Install the EXO V2 module
102
107
103
108
To install the EXO V2 module for the first time, run the following commands:
@@ -123,11 +128,11 @@ To install the EXO V2 module for the first time, run the following commands:
123
128
```
124
129
125
130
**Notes**:
126
-
131
+
127
132
- You need to configure this setting only once on your computer. Read more about execution policies [here](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_execution_policies).
128
-
133
+
129
134
- If you don't do this step, you'll receive the following error when you try to connect:
130
-
135
+
131
136
> Files cannot be loaded because running scripts is disabled on this system. Provide a valid certificate with which to sign the files.
132
137
133
138
3. Close and re-open the elevated Windows PowerShell window to get the changes from the previous steps.
@@ -272,7 +277,7 @@ The following example returns all properties for the 10 mailboxes:
272
277
Get-EXOMailbox -ResultSize 10 -PropertySets All
273
278
```
274
279
275
-
> [!NOTE]
280
+
> [!NOTE]
276
281
> 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 requires properties.
The InternetWebProxyBypassList parameter specifies a list of servers that bypass the web proxy server specified by the InternetWebProxy parameter. You identify the servers by their FQDN (for example, server01.contoso.com).
185
185
186
-
To enter multiple values and overwrite any existing FQDN entries, use the following syntax: \<FQDN1\>,\<FQDN2\>,...\<FQDNX\>.
187
-
188
-
To add or remove one or more values without affecting any existing FQDN entries, use the following syntax: @{Add="\<FQDN1\>","\<FQDN2\>"...; Remove="\<FQDN1\>","\<FQDN\>"...}.
186
+
To enter multiple values and overwrite any existing FQDN entries, use the following syntax: @("host1.contoso.com","host2.contoso.com","host3.contoso.com").
189
187
190
188
The maximum number of servers you can enter with this parameter is 100.
Copy file name to clipboardExpand all lines: exchange/exchange-ps/exchange/organization/Set-OrganizationConfig.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ Set-OrganizationConfig
30
30
[-AppsForOfficeEnabled <Boolean>]
31
31
[-AsyncSendEnabled <Boolean>]
32
32
[-AuditDisabled <Boolean>]
33
+
[-AutodiscoverPartialDirSync <Boolean>]
33
34
[-AutoEnableArchiveMailbox <Boolean>]
34
35
[-AutoExpandingArchive]
35
36
[-BookingsEnabled <Boolean>]
@@ -542,6 +543,26 @@ Accept pipeline input: False
542
543
Accept wildcard characters: False
543
544
```
544
545
546
+
### -AutodiscoverPartialDirSync
547
+
This parameter is available only in the cloud-based service.
548
+
549
+
The AutodiscoverPartialDirSync parameter is for scenarios where tenants have Directory Synced some of their Active Directory users into the cloud, but still have on-premises Exchange users that are not Directory Synced. Setting this parameter to $true will cause unknown users to be redirected to the on-premises endpoint and will allow on-premises users to discover their mailbox automatically. Online email addresses will be susceptible to enumeration. We recommend full Directory Sync for all Active Directory users and leaving this parameter with the default $false.
550
+
551
+
After you enable AutodiscoverPartialDirSync, it will take approximately 3 hours to fully saturate across the cloud.
552
+
553
+
```yaml
554
+
Type: Boolean
555
+
Parameter Sets: Default
556
+
Aliases:
557
+
Applicable: Exchange Online
558
+
559
+
Required: False
560
+
Position: Named
561
+
Default value: None
562
+
Accept pipeline input: False
563
+
Accept wildcard characters: False
564
+
```
565
+
545
566
### -AutoEnableArchiveMailbox
546
567
This parameter is available only in the cloud-based service.
0 commit comments