Skip to content

Commit

Permalink
Update NemosMinerv2.5.1.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
nemosminer authored Feb 25, 2018
1 parent 2c667da commit 1f47252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NemosMinerv2.5.1.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 1f47252

Please sign in to comment.