mirror of
https://github.com/PrimeDecomp/echoes.git
synced 2026-07-12 18:18:57 -07:00
16 lines
360 B
PowerShell
16 lines
360 B
PowerShell
Start-Process -Verb RunAs -Wait powershell.exe -Args @"
|
|
`$dir=\`"${pwd}\`"
|
|
Write-Output \`"Adding exclusion path to Windows Defender: `${dir}\`"
|
|
Add-MpPreference -ExclusionPath \`"`${dir}\`"
|
|
`$result = if (`$?)
|
|
{
|
|
\`"Command succeeded\`"
|
|
}
|
|
else
|
|
{
|
|
\`"Command failed\`"
|
|
}
|
|
Write-Output `$result
|
|
read-host \`"Press enter to exit\`"
|
|
"@
|