Пікірлер
@msrajawat298-eagelview
@msrajawat298-eagelview 6 ай бұрын
I want to send email after the task completed. one email task started and one after finish like task completed
@x-wiki1252
@x-wiki1252 6 ай бұрын
You can add a script block to send an email as soon as execution of script starts and a script block at the end of your script to send the execution details over email. Configuring an email trigger at the start/end of a task is not impossible but very difficult. Usually if you test the execution of task scheduler, there is no need to trigger an email for task scheduler, rather actual start/end of script is more important.
@NAVEEN-y4p
@NAVEEN-y4p Жыл бұрын
Please can you provide me PowerShell script
@Underlig_Abekat
@Underlig_Abekat 10 ай бұрын
$From = "From Email Address" $To = "Email1" "Email2" $Cc = "CC Email address" $Attachment = "C:/Temp/output.html" $Subject = "Subject of email" $Body = "Body in HTML format" $SMTPServer = "smpt.server" $SMTPPort = "if applicable" Send-MailMessage -From $From -to $to -Cc $Cc -Subject $Subject -BodyAsHtml -SmtpServer $SMTPServer -Port $SMTPPort -UseSs1 -Credential (Get-Credential) -Attacments $Attacment
@msrajawat298-eagelview
@msrajawat298-eagelview 6 ай бұрын
at the starting it is sending mail but after taking bkp success one email no receiving terminal got close after bkp @echo off REM Start REM Generate a timestamp for the log filename REM Format: YYYYMMDDHHMMSS for /f "tokens=2-4 delims=/ " %%a in ('date /t') do set datestamp=%%c%%a%%b for /f "tokens=1-4 delims=:. " %%a in ('echo %time%') do ( set hour=%%a set minute=%%b set second=%%c set period=%%d ) REM Handle 12-hour clock and remove spaces if "%period%"=="PM" if "%hour%" NEQ "12" set /a hour=hour+12 if "%period%"=="AM" if "%hour%"=="12" set hour=00 if %hour% LSS 10 set hour=0%hour% set timestamp=%hour%%minute%%second% set LOGFILENAME=backupLog-%datestamp%-%timestamp%.log set LOGFILE=C:\backupLog\%LOGFILENAME% echo Backup process started... powershell -ExecutionPolicy Bypass -File "C:\send_email.ps1" -backupStatus "start" REM Execute the backup process "C:\Program Files\ArcGIS\Portal\tools\webgisdr\webgisdr.bat" --export --file "C:\Program Files\ArcGIS\Portal\tools\webgisdr\webgisdr-working.properties" > "%LOGFILE%" 2>&1 powershell -ExecutionPolicy Bypass -File "C:\send_email.ps1" -backupStatus "success" -logFile "%LOGFILE%" pause
@roypena5309
@roypena5309 3 жыл бұрын
you should re record this... i cant hear you... Volume is at %100
@priyavartsingh8564
@priyavartsingh8564 4 жыл бұрын
how to make backscreen blur when popup come up
@kailashbhardwaj7840
@kailashbhardwaj7840 4 жыл бұрын
Nice. I was looking to this information
@ndnmdm9290
@ndnmdm9290 6 жыл бұрын
how to import files bro?
@ndnmdm9290
@ndnmdm9290 6 жыл бұрын
nice bro thanks