Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.
@echo off setlocal set /p "Computer=Please enter computer name: " if "%Computer%" EQU "" ( echo No computer name entered, ending. exit /b ) set logfile=\\server\public\FG_Diagnostic\%computer%.log echo ----[Diagnostic Run Time]----> %logfile% echo %date:~4,2%/%date:~7,2%/%date:~10,4%>> %logfile% echo %time:~0,2%:%time:~3,2%>> %logfile% echo. >> %logfile% echo ----[Computer Info]---->> %logfile% echo %Computer% >> %logfile% ping -n 2 %computer%>> %logfile% echo. >> %logfile% echo ----[Forward nslookup of IP '%Computer%']---->> %logfile% nslookup.exe %Computer% >>"%LogFile%" 2>&1 set IP= for /f "tokens=2 delims=" %%a in ('ping.exe -n 2 %computer% ^| find.exe /i "Pinging %computer%"') do set IP=%%a
|How Do I Get Windows 7 to Recognize the 2nd TB of a 4 TB Drive?||9||45|
|Path to Python||9||48|
|How to name a file to be attached to e-mail to forward on (Windows 7)||14||24|
|Lenovo ThinkPad SL300 Finger Print Sensor||4||17|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
13 Experts available now in Live!