IF EXIST "%programfiles%\Microsoft Security Client\mpcmdrun.exe" GOTO MSEscan IF EXIST "%programfiles%\Microsoft Security Client\mpcmdrun.exe" ECHO MSE detected! Do not close this window.ĮCHO Scanning process started for %COMPUTERNAME% I also check for its existence before running the batch this way: IF EXIST C:\Clevespace\NameOfBatchFile.cmd C:\Clevespace\NameOfBatchFile.cmdĮCHO Running Anti-Virus scans. I created a batch file and then called it using the 'Run a batch file or executable'. C:\Clevespace was the working directory where I keep the batch files and the SendEmail exe. Most of the echo commands are for seeing the progress in the LMI logs. ![]() ![]() Here is something I put together to update MSE or Defender and then run a full scan and use SendEmail to email a log file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |