Skip to content

Commit 7a58245

Browse files
authored
Merge pull request MicrosoftDocs#5613 from navgupta1208/patch-51
Update app-only-auth-powershell-v2.md
2 parents 75848fd + f4f30d6 commit 7a58245

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ robots: noindex,nofollow
1717
description: "Learn about using the Exchange Online V2 module in scripts and other long-running tasks."
1818
---
1919

20-
# Automate tasks in Exchange Online using PowerShell (Preview)
21-
22-
> [!NOTE]
23-
> The features described in this topic are in Preview, are not available to everyone, and are subject to change.
20+
# Automate tasks in Exchange Online using PowerShell with Modern Authentication
2421

2522
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.
2623

@@ -33,13 +30,12 @@ The following examples show how to use the Exchange Online PowerShell V2 module
3330
```powershell
3431
Connect-ExchangeOnline -CertificateFilePath "C:\Users\johndoe\Desktop\automation-cert.pfx" -AppID "alpha-beta-gamma-123456" -TenantID "contosoelectronics.onmicrosoft.com"
3532
```
36-
33+
3734
- Connect using a certificate thumbprint:
3835

3936
```powershell
40-
Connect-ExchangeOnline -CertificateThumbPrint "012THISISADEMOTHUMBPRINT" -AppID "alpha-beta-gamma-123456" -TenantID "contosoelectronics.onmicrosoft.com"
37+
Connect-ExchangeOnline -CertificateThumbPrint "012THISISADEMOTHUMBPRINT" -AppID "alpha-beta-gamma-123456" -TenantID "contosoelectronics.onmicrosoft.com"
4138
```
42-
4339
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.
4440

4541
- Connect using an existing service principal and client-secret:
@@ -60,7 +56,7 @@ The following examples show how to use the Exchange Online PowerShell V2 module
6056
6157
## How does it work?
6258
63-
The EXO V2 module uses the Active Directory Authentication Library to fetch an app-only token using the application Id, tenant Id, 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.
59+
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.
6460
6561
## Setup app-only authentication
6662

0 commit comments

Comments
 (0)