Skip to content

Commit bd7d419

Browse files
authored
Merge pull request MicrosoftDocs#3318 from MicrosoftDocs/sdwheeler-patch-1
Update Add-CAAuthorityInformationAccess.md
2 parents eb04cd4 + 1297c6a commit bd7d419

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

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

+6-18
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

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

+16-4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ PS C:\> Remove-CAAuthorityInformationAccess -Uri "http://www.contoso.com/pki/orc
5353

5454
This command removes all AIA and OCSP entries that match the URL `http://www.contoso.com/pki/orca1.crt`.
5555

56+
### Example 4: Remove all AIA entries
57+
58+
```powershell
59+
$AIA = Get-CAAuthorityInformationAccess
60+
$AIA | Remove-CAAuthorityInformationAccess
61+
```
62+
63+
This example removes all AIA entries
64+
65+
The first command gets the certificate authority information and stores the information in the variable named $AIA.
66+
67+
The second command removes all the AIA entries that are stored in the $AIA variable.
5668
## PARAMETERS
5769

5870
### -AddToCertificateAia
@@ -61,7 +73,7 @@ Indicates that the cmdlet adds the AIA URI.
6173
```yaml
6274
Type: SwitchParameter
6375
Parameter Sets: RemoveAsAIA
64-
Aliases:
76+
Aliases:
6577

6678
Required: False
6779
Position: Named
@@ -76,7 +88,7 @@ Indicates that the cmdlet adds an Online Responder's URI.
7688
```yaml
7789
Type: SwitchParameter
7890
Parameter Sets: RemoveAsOCSP
79-
Aliases:
91+
Aliases:
8092

8193
Required: False
8294
Position: Named
@@ -106,7 +118,7 @@ Forces the command to run without asking for user confirmation.
106118
```yaml
107119
Type: SwitchParameter
108120
Parameter Sets: (All)
109-
Aliases:
121+
Aliases:
110122

111123
Required: False
112124
Position: Named
@@ -122,7 +134,7 @@ This information is added to the CA properties and registry.
122134
```yaml
123135
Type: String
124136
Parameter Sets: (All)
125-
Aliases:
137+
Aliases:
126138

127139
Required: True
128140
Position: 1

0 commit comments

Comments
 (0)