Skip to content

Commit 151f6b4

Browse files
authored
Revise examples in Connect-SPOService documentation
Updated examples in Connect-SPOService.md with specific client and tenant IDs, and improved clarity in descriptions.
1 parent 84966c6 commit 151f6b4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)