Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.
@echo off for %%x in (C D E Q S T U) do ( if exist %%x:\ chkdsk %%x: /i if ERRORLEVEL 0 goto ERRORLEVEL 0 if ERRORLEVEL 1 goto ERRORLEVEL 1 if ERRORLEVEL 2 goto ERRORLEVEL 2 if ERRORLEVEL 3 goto ERRORLEVEL 3 :ERRORLEVEL 0 eventcreate /l SYSTEM /so chkdsktest /t INFORMATION /id 10 /d "No errors were found on %%x." goto end :ERRORLEVEL 1 eventcreate /l SYSTEM /so chkdsktest /t INFORMATION /id 11 /d "Errors were found and fixed on %%x." goto end :ERRORLEVEL 2 eventcreate /l SYSTEM /so chkdsktest /t WARNING /id 12 /d "Performed disk cleanup (such as garbage collection) or did not perform cleanup because /f was not specified on %%x." goto end :ERRORLEVEL 3 eventcreate /l SYSTEM /so chkdsktest /t ERROR /id 13 /d "Could not check the disk, errors could not be fixed, or errors were not fixed because /f was not specified on %%x." goto end ) :end
|Need batch script to copy multiple files for Windows||4||45|
|Pros and Cons of setting up a batch processing server?||8||53|
|search for directory and set full path and directory as variable windows 7 and 10 batch||5||30|
|cmd.exe will not close when running .bat file to perform FTP upload||18||76|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
20 Experts available now in Live!