save as "anything u want".bat
NETWORK DISCOVERY - YOU MUST RUN AS ADMINISTRATOR
@echo off
cls
:start
ECHO Please select a command from the list below
echo.
echo.
ECHO 1) Enable Network Discovery
ECHO 2) Disable Network Discovery
set choice=
set /p choice=Please enter the command number :
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,9%
if '%choice%'=='1' goto enable
if '%choice%'=='2' goto disable
:enable
netsh advfirewall firewall set rule group="network discovery" new enable=yes
cls
Echo Network Discovery Enabled
ping localhost -n 2 >nul
goto start
:disable
netsh advfirewall firewall set rule group="network discovery" new enable=no
cls
Echo Network Discovery Disabled
ping localhost -n 2 >nul
goto start
(if you...