From 1f47252e268f80e9184926090d6e705b0a8e66d5 Mon Sep 17 00:00:00 2001 From: nemosminer Date: Mon, 26 Feb 2018 12:06:02 +1300 Subject: [PATCH] Update NemosMinerv2.5.1.ps1 --- NemosMinerv2.5.1.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NemosMinerv2.5.1.ps1 b/NemosMinerv2.5.1.ps1 index 15304d980e..0522a4c5b2 100644 --- a/NemosMinerv2.5.1.ps1 +++ b/NemosMinerv2.5.1.ps1 @@ -57,7 +57,7 @@ $ScriptStartDate = Get-Date [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" Set-Location (Split-Path $script:MyInvocation.MyCommand.Path) Get-ChildItem . -Recurse | Unblock-File -Write-host "INFO: Adding NPlusMiner path to Windows Defender's exclusions.. (may show an error if Windows Defender is disabled)" -foregroundcolor "Yellow" +Write-host "INFO: Adding NemosMiner path to Windows Defender's exclusions.. (may show an error if Windows Defender is disabled)" -foregroundcolor "Yellow" try{if((Get-MpPreference).ExclusionPath -notcontains (Convert-Path .)){Start-Process powershell -Verb runAs -ArgumentList "Add-MpPreference -ExclusionPath '$(Convert-Path .)'"}}catch{} if($Proxy -eq ""){$PSDefaultParameterValues.Remove("*:Proxy")} else{$PSDefaultParameterValues["*:Proxy"] = $Proxy}