Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
for /f "tokens=1,2* delims=:" %%a in ('pnputil -e') do ( if %%a equ "Published name " ( set x=%%b ) else ( if %%a equ "Class " ( set test=%%b set test=!test:~21! if !test! equ Printers goto :setglob ) ) ) echo "no pattern match" goto :eof :setglob set x=%x: =% set printers=%x%