Skip to content

Commit 1c1866a

Browse files
authored
Merge pull request MicrosoftDocs#3319 from MicrosoftDocs/main
Publish to live, Thursday 10:30AM PST, 4/27
2 parents ec53a97 + bd7d419 commit 1c1866a

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

docset/winserver2016-ps/defender/Set-MpPreference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Accept wildcard characters: False
123123
Indicates whether to check for new virus and spyware definitions before Windows Defender runs a scan.
124124
If you specify a value of $True, Windows Defender checks for new definitions.
125125
If you specify $False or don't specify a value, the scan begins with existing definitions.
126-
This value applies to scheduled scans and to scans that you start from the command line, but it doesn't affect scans that you start from the user interface.
126+
This setting applies to scheduled scans, but it has no effect on scans initiated manually from the user interface or scans started from the command line using "mpcmdrun -Scan".
127127
128128
```yaml
129129
Type: Boolean

docset/winserver2019-ps/defender/Set-MpPreference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Accept wildcard characters: False
131131
Indicates whether to check for new virus and spyware definitions before Windows Defender runs a scan.
132132
If you specify a value of `$True`, Windows Defender checks for new definitions.
133133
If you specify `$False` or don’t specify a value, the scan begins with existing definitions.
134-
This value applies to scheduled scans, but it doesn’t affect scans that you start from the user interface or to scans that you start from the command line.
134+
This setting applies to scheduled scans, but it has no effect on scans initiated manually from the user interface or on scans started from the command line using "mpcmdrun -Scan".
135135

136136
```yaml
137137
Type: Boolean

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

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

Lines changed: 16 additions & 4 deletions
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

docset/winserver2022-ps/defender/Set-MpPreference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Accept wildcard characters: False
238238
Indicates whether to check for new virus and spyware definitions before Windows Defender runs a scan.
239239
If you specify a value of $True, Windows Defender checks for new definitions.
240240
If you specify $False or don't specify a value, the scan begins with existing definitions.
241-
This value applies to scheduled scans and to scans that you start from the command line, but it doesn't affect scans that you start from the user interface.
241+
This setting applies to scheduled scans, but it has no effect on scans initiated manually from the user interface or on scans started from the command line using "mpcmdrun -Scan".
242242

243243
```yaml
244244
Type: Boolean

0 commit comments

Comments
 (0)