@echo off @rem ********************************************************************************** @rem OS Deployment Script to enable File and Printer Sharing in the Target machine @rem !!!!Caution: Don't edit without proper permission @rem ********************************************************************************** echo. @echo ********************************************************************************* @echo Enabling File and Printer sharing @echo ********************************************************************************* echo. netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes :End echo. pause @exit /b 1 :Eof