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
# Write the test string to the file without a trailing newline
185
+
[IO.File]::WriteAllText($FILE_PATH, $TEST_STRING)
186
+
187
+
# Check if the file was created and contains the correct string
188
+
if (Test-Path -Path $FILE_PATH) {
189
+
$content = [IO.File]::ReadAllText($FILE_PATH)
190
+
if ($content -eq $TEST_STRING) {
191
+
Write-Host "Test file created and validated successfully."
192
+
} else {
193
+
Write-Host "Test file does not contain the correct string."
194
+
}
195
+
} else {
196
+
Write-Host "Failed to create test file."
197
+
}
198
+
```
199
+
215
200
216
201
The alert `MDC_Test_File malware was detected (Agentless)` will appear within 24 hours in the Defender forCloud Alerts page andin the Defender XDR portal.
0 commit comments