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
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.
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.
66
66
67
67
### Example 3
68
68
```powershell
69
-
Connect-IPPSSession -AppId <%App_id%> -CertificateThumbprint <%Thumbprint string of certificate%> -Organization "contoso.onmicrosoft.com"
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.
73
73
74
74
### Example 4
75
75
```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.
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.
0 commit comments