You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -33,15 +37,15 @@ If Windows Defender has detected the threat that you specify, this cmdlet return
33
37
## EXAMPLES
34
38
35
39
### Example 1: Get threats that Windows Defender detected
36
-
```
40
+
```powershell
37
41
PS C:\> Get-MpThreatDetection
38
42
```
39
43
40
44
This command returns the list of past malware detections for the local computer.
41
45
42
46
**Error codes**
43
47
44
-
The following table lists the hexadecimal and decimal error codes for this cmdlet. Each hexadecimal error code has a 0x8050 prefix. Therefore, an ERROR_MP_BAD_SCANID error corresponds to error code 0x80508012. Additionally, an ERR_MP_REMOVE_FAILED error corresponds to error code 0x80508017.
48
+
The following table lists the hexadecimal and decimal error codes for this cmdlet. Each hexadecimal error code has a 0x8050 prefix. Therefore, an ERROR_MP_BAD_SCANID error corresponds to error code 0x80508012. Additionally, an ERR_MP_REMOVE_FAILED error corresponds to error code 0x80508017.
45
49
46
50
For a list of error codes, along with possible reasons and resolutions, see [Windows Defender Antivirus client error codes](/windows/security/threat-protection/windows-defender-antivirus/troubleshoot-windows-defender-antivirus#windows-defender-antivirus-client-error-codes) in the topic [Review event logs and error codes to troubleshoot issues with Windows Defender Antivirus](/windows/security/threat-protection/windows-defender-antivirus/troubleshoot-windows-defender-antivirus#windows-defender-antivirus-client-error-codes).
47
51
@@ -87,19 +91,19 @@ For a list of error codes, along with possible reasons and resolutions, see [Win
87
91
## PARAMETERS
88
92
89
93
### -AsJob
90
-
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
94
+
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
91
95
92
-
The cmdlet immediately returns an object that represents the job and then displays the command prompt.
93
-
You can continue to work in the session while the job completes.
94
-
To manage the job, use the `*-Job` cmdlets.
95
-
To get the job results, use the [Receive-Job](https://go.microsoft.com/fwlink/?LinkID=113372) cmdlet.
96
+
The cmdlet immediately returns an object that represents the job and then displays the command prompt.
97
+
You can continue to work in the session while the job completes.
98
+
To manage the job, use the `*-Job` cmdlets.
99
+
To get the job results, use the [Receive-Job](https://go.microsoft.com/fwlink/?LinkID=113372) cmdlet.
96
100
97
101
For more information about Windows PowerShell background jobs, see [about_Jobs](https://go.microsoft.com/fwlink/?LinkID=113251).
Runs the cmdlet in a remote session or on a remote computer.
113
-
Enter a computer name or a session object, such as the output of a [New-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227967) or [Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet.
116
+
Runs the cmdlet in a remote session or on a remote computer.
117
+
Enter a computer name or a session object, such as the output of a [New-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227967) or [Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet.
114
118
The default is the current session on the local computer.
115
119
116
120
```yaml
@@ -149,7 +153,7 @@ The throttle limit applies only to the current cmdlet, not to the session or to
0 commit comments