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/connect-to-exchange-online-powershell/connect-to-exchange-online-powershell.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ description: "Learn how to use remote PowerShell to connect to Exchange Online."
19
19
Exchange Online PowerShell allows you to manage your Exchange Online settings from the command line. You use Windows PowerShell on your local computer to create a remote PowerShell session to Exchange Online. It's a simple three-step process where you enter your Office 365 credentials, provide the required connection settings, and then import the Exchange Online cmdlets into your local Windows PowerShell session so that you can use them.
20
20
21
21
> [!IMPORTANT]
22
-
> If you want to use multi-factor authentication (MFA) to connect to Exchange Online PowerShell, you need to download and use the Exchange Online Remote PowerShell Module. For more information, see [Connect to Exchange Online PowerShell using multi-factor authentication](mfa-connect-to-exchange-online-powershell.md). If you're an Exchange Online Protection (EOP) standalone customer, and you're using the service to protect on-premises mailboxes, use the connection instructions in the topic [Connect to Exchange Online Protection PowerShell](../../exchange-eop/connect-to-exchange-online-protection-powershell.md). If your EOP subscription is Exchange Enterprise CAL with Services (includes data loss prevention (DLP) and reporting using web services), the connection instructions in this topic will work for you.
22
+
> If you want to use multi-factor authentication (MFA) to connect to Exchange Online PowerShell, you need to download and use the Exchange Online Remote PowerShell Module. For more information, see [Connect to Exchange Online PowerShell using multi-factor authentication](mfa-connect-to-exchange-online-powershell.md). <br/><br/> If you're an Exchange Online Protection (EOP) standalone customer, and you're using the service to protect on-premises mailboxes, use the connection instructions in the topic [Connect to Exchange Online Protection PowerShell](../../exchange-eop/connect-to-exchange-online-protection-powershell.md). If your EOP subscription is Exchange Enterprise CAL with Services (includes data loss prevention (DLP) and reporting using web services), the connection instructions in this topic will work for you.
23
23
24
24
## What do you need to know before you begin?
25
25
@@ -54,7 +54,7 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
54
54
You need to configure this setting only once on your computer, not every time you connect.
55
55
56
56
> [!TIP]
57
-
> Having problems? Ask for help in the Exchange forums. Visit the forums at: [Exchange Online](https://go.microsoft.com/fwlink/p/?linkId=267542), or [Exchange Online Protection](https://go.microsoft.com/fwlink/p/?linkId=285351).
57
+
> Having problems? Ask for help in the Exchange forums. Visit the forums at: [Exchange Online](https://go.microsoft.com/fwlink/p/?linkId=267542), or [Exchange Online Protection](https://go.microsoft.com/fwlink/p/?linkId=285351).
58
58
59
59
## Connect to Exchange Online PowerShell
60
60
@@ -77,13 +77,13 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
77
77
- For Office 365 operated by 21Vianet, use the _ConnectionUri_ value: `https://partner.outlook.cn/PowerShell`
78
78
79
79
- For Office 365 Germany, use the _ConnectionUri_ value: `https://outlook.office.de/powershell-liveid/`
80
-
80
+
81
81
- For Office 365 Government Community Cloud High (GCC High), use the _ConnectionUri_ value: `https://outlook.office365.us/powershell-liveid/`
82
82
83
83
- 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`.
84
-
84
+
85
85
Then, add the following parameter and value to the end of the $Session = ... command: `-SessionOption $ProxyOptions`.
86
-
86
+
87
87
For more information, see [New-PSSessionOption](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-pssessionoption).
Copy file name to clipboardExpand all lines: exchange/exchange-ps/exchange/mailboxes/Get-MailboxLocation.md
+90-16Lines changed: 90 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -12,26 +12,39 @@ monikerRange: "exchonline-ps"
12
12
# Get-MailboxLocation
13
13
14
14
## SYNOPSIS
15
-
This cmdlet is available only in the cloud-based service.
15
+
This cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to one environment or the other.
16
16
17
17
Use the Get-MailboxLocation cmdlet to view mailbox location information in Exchange Online.
18
18
19
19
For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax (https://technet.microsoft.com/library/bb123552.aspx).
In Exchange Server or Exchange Online, this example returns the mailbox location information for the specified mailbox GUID (the ExchangeGuid property value from the results of Get-Mailbox -Identity \<MailboxIdentity\> | Format-List ExchangeGuid).
48
68
49
69
## PARAMETERS
50
70
71
+
### -Database
72
+
This parameter is available only in on-premises Exchange.
73
+
74
+
The Database parameter returns the mailbox location information for all mailboxes on the specified mailbox database. You can use any value that uniquely identifies the database. For example:
75
+
76
+
- Name
77
+
78
+
- Distinguished name (DN)
79
+
80
+
- GUID
81
+
82
+
You can't use this parameter with the Identity parameter.
83
+
84
+
```yaml
85
+
Type: DatabaseIdParameter
86
+
Parameter Sets: DatabaseSet
87
+
Aliases:
88
+
Applicable: Exchange Server 2016, Exchange Server 2019
89
+
Required: True
90
+
Position: Named
91
+
Default value: None
92
+
Accept pipeline input: False
93
+
Accept wildcard characters: False
94
+
```
95
+
51
96
### -Identity
52
-
The Identity parameter specifies the mailbox location object that you want to view. The value uses the syntax \<GUID1\>\\\<GUID2\>. Typically, you can only find this value after you run Get-MailboxLocation with the User parameter.
97
+
The Identity parameter specifies the mailbox location object that you want to view. The value uses the either of the following formats:
98
+
99
+
- \<TenantGUID\>\\\<MailboxGUID\>
100
+
101
+
- \<MailboxGUID\>
102
+
103
+
In Exchange Server or Exchange Online, you can run the following command to find and compare the \<MailboxGUID\> values for the user: Get-Mailbox -Identity \<MailboxIdentity\>\| Format-List *GUID,MailboxLocations.
104
+
105
+
In Exchange Online, you can find the \<TenantGUID\> and \<MailboxGUID\> values after you run Get-MailboxLocation with the User parameter.
53
106
54
107
You can't use this parameter with the User parameter.
55
108
56
109
```yaml
57
110
Type: MailboxLocationIdParameter
58
111
Parameter Sets: Identity
59
112
Aliases:
60
-
Applicable: Exchange Online
113
+
Applicable: Exchange Server 2016, Exchange Server 2019, Exchange Online
This parameter is available only in the cloud-based service.
123
+
69
124
The User parameter specifies the user whose mailbox location you want to view. You can use any value that uniquely identifies the user. For example:
70
125
71
126
- Name
@@ -101,6 +156,25 @@ The Confirm switch specifies whether to show or hide the confirmation prompt. Ho
101
156
Type: SwitchParameter
102
157
Parameter Sets: (All)
103
158
Aliases: cf
159
+
Applicable: Exchange Server 2016, Exchange Server 2019, Exchange Online
160
+
Required: False
161
+
Position: Named
162
+
Default value: None
163
+
Accept pipeline input: False
164
+
Accept wildcard characters: False
165
+
```
166
+
167
+
### -IncludePreviousPrimary
168
+
This parameter is available only in the cloud-based service.
169
+
170
+
The IncludePreviousPrimary switch specifies whether to include the previous primary mailbox in the results. You don't need to specify a value with this switch.
171
+
172
+
You can only use this switch with the User parameter.
173
+
174
+
```yaml
175
+
Type: SwitchParameter
176
+
Parameter Sets: User
177
+
Aliases:
104
178
Applicable: Exchange Online
105
179
Required: False
106
180
Position: Named
@@ -122,15 +196,15 @@ The MailboxLocationType filters the results by the type of mailbox. Valid values
The RefreshSessionEnabled parameter specifies whether to enable or disable the use of refresh tokens when using OpenID Connect for authentication. Valid values are:
2142
-
2143
-
- $true: Refresh tokens are enabled.
2144
-
2145
-
- $false: Refresh tokens are disabled.
2141
+
This parameter is reserved for internal Microsoft use.
0 commit comments