mirror of
https://github.com/PrimeDecomp/echoes.git
synced 2024-11-23 05:10:06 +00:00
Create Add-Exclusion.ps1 for Windows Defender
This commit is contained in:
parent
b38ee2cdc5
commit
e84398dc28
15
Add-Exclusion.ps1
Normal file
15
Add-Exclusion.ps1
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
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\`"
|
||||||
|
"@
|
@ -29,6 +29,7 @@ Windows:
|
|||||||
- Install [ninja](https://github.com/ninja-build/ninja/releases) and add it to `%PATH%`.
|
- Install [ninja](https://github.com/ninja-build/ninja/releases) and add it to `%PATH%`.
|
||||||
- Install [Python](https://www.python.org/downloads/) and add it to `%PATH%`.
|
- Install [Python](https://www.python.org/downloads/) and add it to `%PATH%`.
|
||||||
- Also available from the [Windows Store](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K).
|
- Also available from the [Windows Store](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K).
|
||||||
|
- (Optional) Run `Add-Exclusion.ps1` (Right click -> "Run with PowerShell") to avoid degraded performance from Windows Defender scans.
|
||||||
|
|
||||||
macOS:
|
macOS:
|
||||||
------
|
------
|
||||||
|
Loading…
Reference in New Issue
Block a user