Skip to content

Commit eab5ed4

Browse files
authored
Update Add-CAAuthorityInformationAccess.md
Removed example 3 - does not use this cmdlet
1 parent eb04cd4 commit eab5ed4

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

docset/winserver2022-ps/adcsadministration/Add-CAAuthorityInformationAccess.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,20 @@ An AIA URI should specify either an AIA extension or an OCSP extension, but not
4040
## EXAMPLES
4141

4242
### Example 1: Add AIA to the specified authority
43-
```
44-
PS C:\> Add-CAAuthorityInformationAccess -AddToCertificateAia -Uri http://ca1.corp.contoso.com/pki
43+
44+
```powershell
45+
Add-CAAuthorityInformationAccess -AddToCertificateAia -Uri http://ca1.corp.contoso.com/pki
4546
```
4647

4748
This command adds Authority Information Access (AIA) for the specified certification authority to 'http://ca1.corp.contoso.com/pki'.
4849

4950
### Example 2: Add AIA for OCSP
50-
```
51-
PS C:\> Add-CAAuthorityInformationAccess -AddToCertificateOcsp -Uri http://www.corp.contoso.com/ocsp.
52-
```
53-
54-
This command adds AIA for OCSP pointing to `http://www.corp.contoso.com/ocsp`.
5551

56-
### Example 3: Remove all AIA entries
52+
```powershell
53+
Add-CAAuthorityInformationAccess -AddToCertificateOcsp -Uri http://www.corp.contoso.com/ocsp.
5754
```
58-
PS C:\> $AIA = Get-CAAuthorityInformationAccess
5955

60-
61-
PS C:\> $AIA | Remove-CAAuthorityInformationAccess
62-
```
63-
64-
This example removes all AIA entries
65-
66-
The first command gets the certificate authority information and stores the information in the variable named $AIA.
67-
68-
The second command removes all the AIA entries that are stored in the $AIA variable.
56+
This command adds AIA for OCSP pointing to `http://www.corp.contoso.com/ocsp`.
6957

7058
## PARAMETERS
7159

0 commit comments

Comments
 (0)