Check port status for bulk server's.
ECHO #
for /f %%C in (ServerName.txt) do (
ECHO %%C >>port_report.txt
portQry.exe -n %%C -o 135,136,137,138,139,445 -p both | find "LISTENING" >>port_report.txt
)
ECHO #
ECHO #
for /f %%C in (ServerName.txt) do (
ECHO %%C >>port_report.txt
portQry.exe -n %%C -o 135,136,137,138,139,445 -p both | find "LISTENING" >>port_report.txt
)
ECHO #
No comments:
Post a Comment