Skip to content

Commit 423e369

Browse files
authored
Merge pull request #1645 from Styxxy/patch-14
Export-Certificate examples fixes
2 parents 445a625 + 1e3f77a commit 423e369

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

docset/windows/pkiclient/Export-Certificate.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ Use the **Type** parameter to change the file format.
4141

4242
### EXAMPLE 1
4343
```
44-
PS C:\>$cert = (Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF)
45-
46-
44+
PS C:\>$cert = Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF
4745
4846
PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.sst -Type SST
4947
```
@@ -52,9 +50,7 @@ This example exports a certificate to the file system as a Microsoft serialized
5250

5351
### EXAMPLE 2
5452
```
55-
PS C:\>$cert = (Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF)
56-
57-
53+
PS C:\>$cert = Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF
5854
5955
PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.cer
6056
```
@@ -63,9 +59,7 @@ This example exports a certificate to the file system as a DER-encoded `.cer` fi
6359

6460
### EXAMPLE 3
6561
```
66-
PS C:\>$cert = ( Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF )
67-
68-
62+
PS C:\>$cert = Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF
6963
7064
PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.p7b -Type p7b
7165
```

0 commit comments

Comments
 (0)