Skip to content

Commit 626f8cb

Browse files
authored
Refactor example 9 to use thumbprint variable
Updated example 9 to use a variable for the certificate thumbprint.
1 parent 151f6b4 commit 626f8cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ Connect to the SharePoint Online service using an app identity and a certificate
127127
### EXAMPLE 9
128128

129129
```powershell
130-
$cert = Get-ChildItem Cert:\LocalMachine\My\$CertThumbprint
130+
$thumbprint = "<3F2A5C9D4E7B8A1234567890ABCDEF1234567890>"
131+
$cert = Get-ChildItem Cert:\LocalMachine\My\$thumbprint "
131132
Connect-SPOService -Url https://contoso-admin.sharepoint.com -ClientId 00000000-0000-0000-0000-000000000000 -Tenant 11111111-1111-1111-1111-111111111111 -Certificate $cert
132133
```
133134
Connect to the SharePoint Online service using an app identity and a certificate object.

0 commit comments

Comments
 (0)