File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -112,25 +112,25 @@ Authenticates using the Microsoft Authentication Library (MSAL) and connects to
112112### EXAMPLE 7
113113
114114``` powershell
115- $password = ConvertTo-SecureString -String " password" -Force -AsPlainText
116- Connect-SPOService -Url https://contoso-admin.sharepoint.com -ClientId <your_client_id> -Tenant <your_tenant_id> -CertificatePath < C:\certificates\sample-cert .pfx> -CertificatePassword $password
115+ $password = Read-Host -Prompt "Enter certificate password" -AsSecureString
116+ Connect-SPOService -Url https://contoso-admin.sharepoint.com -ClientId 00000000-0000-0000-0000-000000000000 -Tenant 11111111-1111-1111-1111-111111111111 -CertificatePath C:\Certs\ContosoAppAuth .pfx -CertificatePassword $password
117117```
118- Connect to the SharePoint Online service using an app identity and a certificate file path, with an optional password
118+ Connect to the SharePoint Online service using an app identity and a certificate file path, with an optional password.
119119
120120### EXAMPLE 8
121121
122122``` powershell
123- Connect-SPOService -Url https://contoso-admin.sharepoint.com -ClientId <your_client_id> -Tenant <your_tenant_id> -CertificateThumbprint "<your_certificate_thumbprint> "
123+ Connect-SPOService -Url https://contoso-admin.sharepoint.com -ClientId 00000000-0000-0000-0000-000000000000 -Tenant 11111111-1111-1111-1111-111111111111 -CertificateThumbprint "3FAAAA1111AAAAAAAAAAA2222AAAAAAAAAAAAAAA "
124124```
125- Connect to the SharePoint Online service using an app identity and a certificate thumbprint
125+ Connect to the SharePoint Online service using an app identity and a certificate thumbprint.
126126
127127### EXAMPLE 9
128128
129129``` powershell
130- $cert = Get-ChildItem Cert:\LocalMachine\My$CertThumbprint
131- Connect-SPOService -Url https://contoso-admin.sharepoint.com -ClientId <your_client_id> -Tenant <your_tenant_id> -Certificate $cert
130+ $cert = Get-ChildItem Cert:\LocalMachine\My\ $CertThumbprint
131+ Connect-SPOService -Url https://contoso-admin.sharepoint.com -ClientId 00000000-0000-0000-0000-000000000000 -Tenant 11111111-1111-1111-1111-111111111111 -Certificate $cert
132132```
133- Connect to the SharePoint Online service using an app identity and a certificate object
133+ Connect to the SharePoint Online service using an app identity and a certificate object.
134134
135135## PARAMETERS
136136
You can’t perform that action at this time.
0 commit comments