Skip to content

Commit c7b1cf9

Browse files
committed
Merge branch 'master' into ChrisdaCopyOfQinezh-test
2 parents 7c31615 + 5ac9867 commit c7b1cf9

File tree

488 files changed

+1946
-912
lines changed

Some content is hidden

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

488 files changed

+1946
-912
lines changed

.openpublishing.redirection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6527,7 +6527,7 @@
65276527
},
65286528
{
65296529
"source_path": "exchange/docs-conceptual/exchange-server/exchange-cmdlet-syntax.md",
6530-
"redirect_url": "https://docs.microsoft.com/powershell/exchange-cmdlet-syntax",
6530+
"redirect_url": "https://docs.microsoft.com/powershell/exchange/exchange-cmdlet-syntax",
65316531
"redirect_document_id": true
65326532
},
65336533
{

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ description: "Learn about using the Exchange Online V2 module in scripts and oth
1919

2020
# Automate tasks in Exchange Online using PowerShell with Modern Authentication
2121

22+
> [!NOTE]
23+
> The features described in this topic are currently in Preview, are subject to change, and aren't available to everyone.
24+
2225
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.
2326

2427
Because storing user credentials locally is not a good security practice, we're releasing this feature to support authentication for app-only scenarios using AzureAD applications and self-signed certificates.
@@ -28,13 +31,13 @@ The following examples show how to use the Exchange Online PowerShell V2 module
2831
- Connect using a local certificate:
2932

3033
```powershell
31-
Connect-ExchangeOnline -CertificateFilePath "C:\Users\johndoe\Desktop\automation-cert.pfx" -AppID "alpha-beta-gamma-123456" -TenantID "contosoelectronics.onmicrosoft.com"
34+
Connect-ExchangeOnline -CertificateFilePath "C:\Users\johndoe\Desktop\automation-cert.pfx" -AppID "alpha-beta-gamma-123456" -Organization "contosoelectronics.onmicrosoft.com"
3235
```
3336

3437
- Connect using a certificate thumbprint:
3538

3639
```powershell
37-
Connect-ExchangeOnline -CertificateThumbPrint "012THISISADEMOTHUMBPRINT" -AppID "alpha-beta-gamma-123456" -TenantID "contosoelectronics.onmicrosoft.com"
40+
Connect-ExchangeOnline -CertificateThumbPrint "012THISISADEMOTHUMBPRINT" -AppID "alpha-beta-gamma-123456" -Organization "contosoelectronics.onmicrosoft.com"
3841
```
3942

4043
When you use the _CertificateThumbPrint_ parameter, the certificate needs to be installed on the computer where you are running the command. The certificate should be installed in the user certificate store.

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

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

4646
- Windows Server 2008 R2 SP1<sup>*</sup>
4747

48-
<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 an updated version of the Windows Management Framework: 3.0, 4.0, or 5.1 (only one). For more information, see [Installing the .NET Framework](https://go.microsoft.com/fwlink/p/?LinkId=257868), [Windows Management Framework 3.0](https://go.microsoft.com/fwlink/p/?LinkId=272757), [Windows Management Framework 4.0](https://go.microsoft.com/fwlink/p/?LinkId=391344), and [Windows Management Framework 5.1](https://aka.ms/wmf5download).
48+
<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 an updated version of the Windows Management Framework: 3.0, 4.0, or 5.1 (only one). For more information, see [Install the .NET Framework](https://docs.microsoft.com/dotnet/framework/install/on-windows-7), [Windows Management Framework 3.0](https://www.microsoft.com/download/details.aspx?id=34595), [Windows Management Framework 4.0](https://www.microsoft.com/download/details.aspx?id=40855), and [Windows Management Framework 5.1](https://aka.ms/wmf5download).
4949

5050
- Windows PowerShell needs to be configured to run scripts, and by default, it isn't. You'll get the following error when you try to connect:
5151

@@ -104,6 +104,8 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
104104
- For Office 365 Germany, use the _ConnectionUri_ value: `https://outlook.office.de/powershell-liveid/`
105105

106106
- For Microsoft 365 Government Community Cloud High (GCC High), use the _ConnectionUri_ value: `https://outlook.office365.us/powershell-liveid/`
107+
108+
- For Microsoft 365 DoD, use the _ConnectionUri_ value: `https://webmail.apps.mil/powershell-liveid`
107109

108110
- 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`.
109111

@@ -144,14 +146,14 @@ If you receive errors, check the following requirements:
144146

145147
The cmdlets that you use in this topic are Windows PowerShell cmdlets. For more information about these cmdlets, see the following topics.
146148

147-
- [Get-Credential](https://go.microsoft.com/fwlink/p/?LinkId=389618)
149+
- [Get-Credential](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/get-credential)
148150

149-
- [New-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389621)
151+
- [New-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-pssession)
150152

151-
- [Import-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389619)
153+
- [Import-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/import-pssession)
152154

153-
- [Remove-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389620)
155+
- [Remove-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/remove-pssession)
154156

155-
- [Set-ExecutionPolicy](https://go.microsoft.com/fwlink/p/?LinkId=389623)
157+
- [Set-ExecutionPolicy](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/set-executionpolicy)
156158

157159
For more information about managing Microsoft 365, see [Manage Microsoft 365 and Office 365](https://docs.microsoft.com/Office365/).

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In standalone Exchange Online Protection (EOP) organizations without Exchange On
3838

3939
- Windows Server 2008 R2 SP1<sup>*</sup>
4040

41-
<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 an updated version of the Windows Management Framework: 3.0, 4.0, or 5.1 (only one). For more information, see [Installing the .NET Framework](https://go.microsoft.com/fwlink/p/?LinkId=257868), [Windows Management Framework 3.0](https://go.microsoft.com/fwlink/p/?LinkId=272757), [Windows Management Framework 4.0](https://go.microsoft.com/fwlink/p/?LinkId=391344), and [Windows Management Framework 5.1](https://aka.ms/wmf5download).
41+
<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 an updated version of the Windows Management Framework: 3.0, 4.0, or 5.1 (only one). For more information, see [Install the .NET Framework](https://docs.microsoft.com/dotnet/framework/install/on-windows-7), [Windows Management Framework 3.0](https://www.microsoft.com/download/details.aspx?id=34595), [Windows Management Framework 4.0](https://www.microsoft.com/download/details.aspx?id=40855), and [Windows Management Framework 5.1](https://aka.ms/wmf5download).
4242

4343
- Windows PowerShell needs to be configured to run scripts, and by default, it isn't. You'll get the following error when you try to connect:
4444

@@ -135,12 +135,12 @@ If you receive errors, check the following requirements:
135135

136136
The cmdlets that you use in this topic are Windows PowerShell cmdlets. For more information about these cmdlets, see the following topics.
137137

138-
- [Get-Credential](https://go.microsoft.com/fwlink/p/?LinkId=389618)
138+
- [Get-Credential](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/get-credential)
139139

140-
- [New-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389621)
140+
- [New-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-pssession)
141141

142-
- [Import-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389619)
142+
- [Import-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/import-pssession)
143143

144-
- [Remove-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389620)
144+
- [Remove-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/remove-pssession)
145145

146-
- [Set-ExecutionPolicy](https://go.microsoft.com/fwlink/p/?LinkId=389623)
146+
- [Set-ExecutionPolicy](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/set-executionpolicy)

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

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

4242
- Windows Server 2008 R2 SP1<sup>*</sup>
4343

44-
<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 an updated version of the Windows Management Framework: 3.0, 4.0, or 5.1 (only one). For more information, see [Installing the .NET Framework](https://go.microsoft.com/fwlink/p/?LinkId=257868), [Windows Management Framework 3.0](https://go.microsoft.com/fwlink/p/?LinkId=272757), [Windows Management Framework 4.0](https://go.microsoft.com/fwlink/p/?LinkId=391344), and [Windows Management Framework 5.1](https://aka.ms/wmf5download).
44+
<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 an updated version of the Windows Management Framework: 3.0, 4.0, or 5.1 (only one). For more information, see [Install the .NET Framework](https://docs.microsoft.com/dotnet/framework/install/on-windows-7), [Windows Management Framework 3.0](https://www.microsoft.com/download/details.aspx?id=34595), [Windows Management Framework 4.0](https://www.microsoft.com/download/details.aspx?id=40855), and [Windows Management Framework 5.1](https://aka.ms/wmf5download).
4545

4646
- Windows PowerShell needs to be configured to run scripts, and by default, it isn't. You'll get the following error when you try to connect:
4747

@@ -105,12 +105,12 @@ If you receive errors, check the following requirements:
105105

106106
The cmdlets that you use in this topic are Windows PowerShell cmdlets. For more information about these cmdlets, see the following topics.
107107

108-
- [Get-Credential](https://go.microsoft.com/fwlink/p/?LinkId=389618)
108+
- [Get-Credential](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/get-credential)
109109

110-
- [New-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389621)
110+
- [New-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-pssession)
111111

112-
- [Import-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389619)
112+
- [Import-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/import-pssession)
113113

114-
- [Remove-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389620)
114+
- [Remove-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/remove-pssession)
115115

116-
- [Set-ExecutionPolicy](https://go.microsoft.com/fwlink/p/?LinkId=389623)
116+
- [Set-ExecutionPolicy](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/set-executionpolicy)

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ Security & Compliance Center PowerShell allows you to manage your Security & Com
3030
>
3131
> Some features in the Security & Compliance Center (for example, mailbox archiving) link to existing functionality in the Exchange admin center (EAC). To use PowerShell with these features, you need to connect to Exchange Online PowerShell instead of Security & Compliance Center PowerShell. For instructions, see [Connect to Exchange Online PowerShell](connect-to-exchange-online-powershell.md).
3232
33-
For more information about the Security & Compliance Center, see [Security & Compliance Center](https://go.microsoft.com/fwlink/p/?LinkId=627054).
34-
3533
## What do you need to know before you begin?
3634

3735
- Estimated time to complete: 5 minutes
3836

39-
- Microsoft 365 global admins have access to the Security & Compliance Center, but everyone else needs to have their access configured for them. For details, see [Give users access to the Security & Compliance Center](https://go.microsoft.com/fwlink/p/?LinkId=627057).
37+
- Microsoft 365 global admins have access to the Security & Compliance Center, but everyone else needs to have their access configured for them. For details, see [Give users access to the Security & Compliance Center](https://docs.microsoft.com/microsoft-365/security/office-365-security/grant-access-to-the-security-and-compliance-center).
4038

4139
- You can use the following versions of Windows:
4240

@@ -54,7 +52,7 @@ For more information about the Security & Compliance Center, see [Security & Com
5452

5553
- Windows Server 2008 R2 SP1<sup>*</sup>
5654

57-
<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 an updated version of the Windows Management Framework: 3.0, 4.0, or 5.1 (only one). For more information, see [Installing the .NET Framework](https://go.microsoft.com/fwlink/p/?LinkId=257868), [Windows Management Framework 3.0](https://go.microsoft.com/fwlink/p/?LinkId=272757), [Windows Management Framework 4.0](https://go.microsoft.com/fwlink/p/?LinkId=391344), and [Windows Management Framework 5.1](https://aka.ms/wmf5download).
55+
<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 an updated version of the Windows Management Framework: 3.0, 4.0, or 5.1 (only one). For more information, see [Install the .NET Framework](https://docs.microsoft.com/dotnet/framework/install/on-windows-7), [Windows Management Framework 3.0](https://www.microsoft.com/download/details.aspx?id=34595), [Windows Management Framework 4.0](https://www.microsoft.com/download/details.aspx?id=40855), and [Windows Management Framework 5.1](https://aka.ms/wmf5download).
5856

5957
- Windows PowerShell needs to be configured to run scripts, and by default, it isn't. You'll get the following error when you try to connect:
6058

@@ -132,7 +130,7 @@ If you receive errors, check the following requirements:
132130

133131
- A common problem is an incorrect password. Run the three steps again and pay close attention to the user name and password you enter in Step 1.
134132

135-
- Verify that your account has permission to access the Security & Compliance Center. For details, see [Give users access to the Security & Compliance Center](https://go.microsoft.com/fwlink/p/?LinkId=627057).
133+
- Verify that your account has permission to access the Security & Compliance Center. For details, see [Give users access to the Security & Compliance Center](https://docs.microsoft.com/microsoft-365/security/office-365-security/grant-access-to-the-security-and-compliance-center).
136134

137135
- To help prevent denial-of-service (DoS) attacks, you're limited to three open remote PowerShell connections to the Security & Compliance Center.
138136

@@ -148,12 +146,12 @@ If you receive errors, check the following requirements:
148146

149147
The cmdlets that you use in this topic are Windows PowerShell cmdlets. For more information about these cmdlets, see the following topics.
150148

151-
- [Get-Credential](https://go.microsoft.com/fwlink/p/?LinkId=389618)
149+
- [Get-Credential](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/get-credential)
152150

153-
- [New-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389621)
151+
- [New-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-pssession)
154152

155-
- [Import-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389619)
153+
- [Import-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/import-pssession)
156154

157-
- [Remove-PSSession](https://go.microsoft.com/fwlink/p/?LinkId=389620)
155+
- [Remove-PSSession](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/remove-pssession)
158156

159-
- [Set-ExecutionPolicy](https://go.microsoft.com/fwlink/p/?LinkId=389623)
157+
- [Set-ExecutionPolicy](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/set-executionpolicy)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For additional management tasks related to remote PowerShell, see [Connect to Ex
3131
- You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Remote PowerShell" entry in the [Exchange infrastructure and PowerShell permissions](https://docs.microsoft.com/Exchange/permissions/feature-permissions/infrastructure-permissions) topic.
3232

3333
> [!TIP]
34-
> Having problems? Ask for help in the Exchange forums. Visit the forums at [Exchange Server](https://go.microsoft.com/fwlink/p/?linkId=60612).
34+
> Having problems? Ask for help in the [Exchange Server](https://go.microsoft.com/fwlink/p/?linkId=60612) forums.
3535
3636
## Use the Exchange Management Shell to enable or disable remote PowerShell access for a user
3737

0 commit comments

Comments
 (0)