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-powershell-v2.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,21 @@ Miscellaneous Exchange Online cmdlets that happen to be in the EXO V2 module are
96
96
|[Set-VivaInsightsSettings](/powershell/module/exchange/set-vivainsightssettings)|Available in v2.0.5-Preview2 or later.|
97
97
|
98
98
99
+
### Updates for version 2.0.6
100
+
101
+
Version 2.0.6-Preview3 of the EXO V2 module is now available. This Preview version improves upon the historical capabilities of the module with the following features:
102
+
103
+
- 250 additional remote PowerShell cmdlets that are backed by the REST API. These REST API cmdlets don't rely on the remote PowerShell session, so PowerShell on your client computer doesn't need [Basic authentication in WinRM](#prerequisites-for-the-exo-v2-module). These REST API cmdlets also work just like their old remote PowerShell equivalent cmdlets, so you don't need to update any of your scripts.
104
+
- The new _RPSSession_ switch in **Connect-ExchangeOnline** grants access to all existing remote PowerShell cmdlets. The _RPSSession_ switch requires [Basic authentication in WinRM](#prerequisites-for-the-exo-v2-module) on your client computer.
105
+
- A small number of existing mailbox remote PowerShell cmdlets have been updated with a new, experimental _UseCustomRoutingSwitch_ parameter. Using this switch routes the command directly to the required Mailbox server, and might improve overall performance.
106
+
- When you use the _UseCustomRoutingSwitch_, you need to use the following values for identity of the mailbox:
107
+
- User principal name (UPN)
108
+
- Email address
109
+
- Mailbox GUID
110
+
- Initially, the _UseCustomRoutingSwitch_ is available on the following cmdlets: **Remove-CalendarEvents**, **Get-Clutter**, **Set-Clutter**, **Get-FocusedInbox**, **Set-FocusedInbox**, **Get-InboxRule**, **Get-MailboxAutoReplyConfiguration**, **Get-MailboxCalendarFolder**, **Get-MailboxFolderPermission**, **Get-MailboxFolderStatistics**, **Get-MailboxMessageConfiguration**, **Get-MailboxPermission**, **Get-MailboxRegionalConfiguration**, **Set-MailboxRegionalConfiguration**, **Get-MailboxStatistics**, **Get-MobileDeviceStatistics**, **Get-UserPhoto**, and **Set-UserPhoto**.
111
+
112
+
Use this parameter experimentally and [report any issues](#report-bugs-and-issues-for-the-exo-v2-module) that you encounter.
113
+
99
114
## Install and maintain the EXO V2 module
100
115
101
116
You can download the EXO V2 module from the PowerShell gallery at <https://www.powershellgallery.com/packages/ExchangeOnlineManagement/>.
This example connects to Exchange Online PowerShell using modern authentication for an account that doesn't use multi-factor authentication (MFA).
72
-
73
-
The first command gets the username and password and stores them in the $UserCredential variable.
74
-
75
-
The second command connects the current PowerShell session using the credentials in $UserCredential.
76
-
77
-
After the Connect-ExchangeOnline command is complete, the password key in the $UserCredential variable is emptied, and you can run Exchange Online PowerShell cmdlets.
71
+
This example connects to Exchange Online PowerShell using modern authentication, with or without multi-factor authentication (MFA). We aren't using the UseRPSSession parameter, so the connection uses REST and doesn't require Basic authentication to be enabled in WinROM on the local computer. But, only the subset of frequently used REST API parameters are available.
This example connects to Exchange Online PowerShell using modern authentication for the account [email protected], which uses MFA.
85
-
86
-
After the command is successful, you can run ExO V2 module cmdlets and older remote PowerShell cmdlets.
78
+
This example connects to Exchange Online PowerShell using modern authentication, with or without MFA. We're using the UseRPSSession parameter, so the connection requires Basic authentication to be enabled in WinRM on the local computer. But, all Exchange Online PowerShell cmdlets are available using traditional remote PowerShell access.
87
79
88
80
### Example 3
89
81
```powershell
@@ -640,6 +632,28 @@ Accept pipeline input: False
640
632
Accept wildcard characters: False
641
633
```
642
634
635
+
### -UseRPSSession
636
+
This parameter is available in version 2.0.6-Preview3 or later of the Exchange Online V2 module.
637
+
638
+
The UseRPSSession switch allows you to connect to Exchange Online PowerShell using traditional remote PowerShell access to all cmdlets. You don't need to specify a value with this switch.
639
+
640
+
This switch requires that Basic authentication is enabled in WinRM on the local computer. For more information, see [Prerequisites in the EXO V2 module](https://docs.microsoft.com/powershell/exchange/exchange-online-powershell-v2#prerequisites-for-the-exo-v2-module).
641
+
642
+
If you don't use this parameter, Basic authentication in WinRM is not required, but only the subset of frequently used REST API cmdlets are available.
643
+
644
+
```yaml
645
+
Type: SwitchParameter
646
+
Parameter Sets: (All)
647
+
Aliases:
648
+
Applicable: Exchange Online
649
+
650
+
Required: False
651
+
Position: Named
652
+
Default value: False
653
+
Accept pipeline input: False
654
+
Accept wildcard characters: False
655
+
```
656
+
643
657
### CommonParameters
644
658
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216).
0 commit comments