Skip to content

Instantly share code, notes, and snippets.

@parthbera
parthbera / antivirus-test-file.ps1
Last active February 4, 2022 18:42
This PowerShell function creates a EICAR standard antivirus test file
function New-AntiVirusTestFile
{
Param(
[string]$Path
)
Begin {}
Process
{
if (Test-Path $Path)
{