Skip to content

Commit ca8a42e

Browse files
authored
Merge pull request #4716 from dmcwee/docs-editor/mde-demonstration-amsi-1754930271
Update mde-demonstration-amsi.md
2 parents dd2d64b + 62f08dc commit ca8a42e

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

defender-endpoint/mde-demonstration-amsi.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ In this demonstration article, you have two engine choices to test AMSI:
4949

5050
1. Save the following PowerShell script as `AMSI_PoSh_script.ps1`:
5151

52-
:::image type="content" source="media/mde-demonstrations-amsi/test-amsi-powershell-save-script.png" alt-text="Screenshot showing PowerShell script to save as AMSI_PoSh_script.ps1" lightbox="media/mde-demonstrations-amsi/test-amsi-powershell-save-script.png":::
53-
52+
```powershell
53+
$testString = "AMSI Test Sample: " + "7e72c3ce-861b-4339-8740-0ac1484c1386"
54+
Invoke-Expression $testString
55+
```
56+
5457
2. On your device, open PowerShell as an administrator.
5558

5659
3. Type `Powershell -ExecutionPolicy Bypass AMSI_PoSh_script.ps1`, and then press **Enter**.
@@ -64,17 +67,22 @@ In this demonstration article, you have two engine choices to test AMSI:
6467

6568
1. Save the following VBScript as `AMSI_vbscript.vbs`:
6669

67-
:::image type="content" source="media/mde-demonstrations-amsi/test-amsi-vbscript-save-script.png" alt-text="Screenshot showing VBScript to save as AMSI_vbscript.vbs" lightbox="media/mde-demonstrations-amsi/test-amsi-vbscript-save-script.png":::
68-
70+
```vbscript
71+
REM Save this sample AMSI vbscript as AMSI_vbscript.vbs
72+
Dim result
73+
result = eval("AMSI Test Sample: " + "7e72c3ce-861b-4339-8740-0ac1484c1386")
74+
WScript.Echo result
75+
```
76+
6977
2. On your Windows Device, open Command Prompt as an administrator.
7078

71-
2. Type `wscript AMSI_vbscript.js`, and then press **Enter**.
79+
1. Type `wscript AMSI_vbscript.vbs`, and then press **Enter**.
7280

7381
The result should be as follows:
7482

75-
:::image type="content" source="media/mde-demonstrations-amsi/test-amsi-vbscript-results.png" alt-text="Screenshot showing the AMSI test results. It should show that antivirus software blocked the script." lightbox="media/mde-demonstrations-amsi/test-amsi-vbscript-results.png":::
83+
:::image type="content" source="media/mde-demonstrations-amsi/test-amsi-vbscript-results.png" alt-text="Screenshot showing the AMSI test results. It should show that antivirus software blocked the script." lightbox="media/mde-demonstrations-amsi/test-amsi-vbscript-results.png":::
84+
7685

77-
7886
### Verifying the test results
7987

8088
In your protection history, you should be able to see the following information:

0 commit comments

Comments
 (0)