@ Xleejohnx
I'm answering late to you message, sorry about it.
I'm trying to do it but I have few questions.
claymore ethman comes with a sample.bat file you use it to look like this
@ECHO OFF
Powershell.exe -executionpolicy remotesigned -File C:\minerTxt.ps1
then the powershell script needs to look like this
#Variables
$email = "
[email protected]"
$phone = "
[email protected]"
$ProcessActive = Get-Process dsNetworkConnect -ErrorAction SilentlyContinue
if($ProcessActive -eq $null)
{
$EmailFrom = $email
$EmailTo = $phone
$Subject = "Claymore Miner down"
$Body = "Check Miners!!"
$SMTPServer = "smtp.gmail.com"
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("myTower.local", "Passwordgoeshere");
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)
}
-So I just copy paste
@ECHO OFF
Powershell.exe -executionpolicy remotesigned -File C:\minerTxt.ps1
in the sample.bat ? do I have to change the name of the file ?
-what is the "C:\minerTxt.ps1" ? is that a txt file I have to create and just copy paste that inside:
#Variables
$email = "
[email protected]"
$phone = "
[email protected]"
$ProcessActive = Get-Process dsNetworkConnect -ErrorAction SilentlyContinue
if($ProcessActive -eq $null)
{
$EmailFrom = $email
$EmailTo = $phone
$Subject = "Claymore Miner down"
$Body = "Check Miners!!"
$SMTPServer = "smtp.gmail.com"
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("myTower.local", "Passwordgoeshere");
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)
}
updated with my mail informations of course
Sorry but never went in this kind of things before.