Skip to content

Commit 64a8d51

Browse files
committed
Update Connect-IPPSSession.md
1 parent 2d8a66d commit 64a8d51

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

exchange/exchange-ps/exchange/Connect-IPPSSession.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,28 +55,35 @@ For detailed connection instructions, including prerequisites, see [Connect to S
5555
Connect-IPPSSession -UserPrincipalName [email protected]
5656
```
5757

58-
This example connects to Security & Compliance PowerShell in a Microsoft 365 organization. You're prompted for the password of the [email protected] account.
58+
This example connects to Security & Compliance PowerShell in a Microsoft 365 organization. You're prompted for the password of the [email protected] account. In v3.2.0-Preview3 or later, we aren't using the UseRPSSession switch, so the connection uses REST and doesn't require Basic authentication to be enabled in WinRM on the local computer.
5959

6060
### Example 2
6161
```powershell
62-
Connect-IPPSSession -AppId <%App_id%> -CertificateFilePath "C:\users\navin\Documents\TestCert.pfx" -Organization "contoso.onmicrosoft.com"
62+
Connect-IPPSSession -UserPrincipalName michelle@contoso.onmicrosoft.com -UseRPSSession
6363
```
6464

65-
Using the Exchange Online PowerShell module version 2.0.6-Preview5 or later, this example connects to Security & Compliance PowerShell in an unattended scripting scenario using the public key of a certificate.
65+
This example connects to Security & Compliance using modern authentication, with or without MFA. In v3.0.0 or later, we're using the UseRPSSession switch, so the connection requires Basic authentication to be enabled in WinRM on the local computer.
6666

6767
### Example 3
6868
```powershell
69-
Connect-IPPSSession -AppId <%App_id%> -CertificateThumbprint <%Thumbprint string of certificate%> -Organization "contoso.onmicrosoft.com"
69+
Connect-IPPSSession -AppId <%App_id%> -CertificateFilePath "C:\users\navin\Documents\TestCert.pfx" -Organization "contoso.onmicrosoft.com"
7070
```
7171

72-
Using the Exchange Online PowerShell module version 2.0.6-Preview5 or later, this example connects to Security & Compliance PowerShell in an unattended scripting scenario using a certificate thumbprint.
72+
This example connects to Security & Compliance PowerShell in an unattended scripting scenario using the public key of a certificate.
7373

7474
### Example 4
7575
```powershell
76+
Connect-IPPSSession -AppId <%App_id%> -CertificateThumbprint <%Thumbprint string of certificate%> -Organization "contoso.onmicrosoft.com"
77+
```
78+
79+
This example connects to Security & Compliance PowerShell in an unattended scripting scenario using a certificate thumbprint.
80+
81+
### Example 5
82+
```powershell
7683
Connect-IPPSSession -AppId <%App_id%> -Certificate <%X509Certificate2 object%> -Organization "contoso.onmicrosoft.com"
7784
```
7885

79-
Using the Exchange Online PowerShell module version 2.0.6-Preview5 or later, this example connects to Security & Compliance PowerShell in an unattended scripting scenario using a certificate file. This method is best suited for scenarios where the certificate is stored in remote machines and fetched at runtime. For example, the certificate is stored in the Azure Key Vault.
86+
This example connects to Security & Compliance PowerShell in an unattended scripting scenario using a certificate file. This method is best suited for scenarios where the certificate is stored in remote machines and fetched at runtime. For example, the certificate is stored in the Azure Key Vault.
8087

8188
## PARAMETERS
8289

0 commit comments

Comments
 (0)