Wednesday, January 30, 2013

Bulk Port Query


ECHO #

for /f %%C in (ServerName.txt) do (

ECHO %%C >>port_report.txt


portQry.exe -n %%C -o 135,136,137,138,139,445,3389 -p both | find "LISTENING" >>port_report.txt

)

ECHO #

Friday, January 25, 2013

Handle.exe doesnt work with error "Error loading driver:"

Use Psexe to exexute Handle.exe in that case. Example of command:

PsExec.exe -s handle.exe >output.txt
PsExec.exe -s handle.exe -p 4 -c 36B0