How to Disable the Computer Browser Service Throughout a Domain
How to Stop the Computer Browser Service
- Create a Member.bat, Stopbrow.bat, and Stopbrow2.bat batch file.
Code for the Member.bat File
@ECHO OFFNETDOM MEMBER > MEMBER.TXTFOR /F "skip=6 tokens=4" %%i IN (MEMBER.TXT) DO ECHO %%i >> SERVERS.TXT
Code for the Stopbrow.bat File
@ECHO OFFFOR /F "tokens=1" %%i IN (SERVERS.TXT) DO call stopbrow2.bat %%i
Code for the Stopbrow2.bat File
@echo offecho Processing computer %1 >> output.txtNETSVC /STOP %1 BROWSER >> output.txtREG UPDATE HKLM\System\CurrentControlSet\Services\Browser\Start=4 %1 >> output.txt
- Place the three preceding batch files and resource kit utilities into a folder, and then place the folder on the computer that is to run the batch files. This computer must be a member of the domain where you want to disable the Computer Browser service.
- Run the Member.bat file, which creates two text files: Member.txt and Servers.txt. The Servers.txt file includes a list of all of the workstations and member servers in the domain. This file can serve as the list of targets for the Stopbrow.bat batch file.
- Run the Stopbrow.bat file. This file examines the list of computers that are listed in the Servers.txt file, and then calls the Stopbrow2.bat file to stop, and then disable the Computer Browser service on each computer. The results of this process are logged to the Output.txt file, which can be reviewed to determine the computers that had been successfully processed.
Article ID: 297789 - Last Review: 12/06/2015 02:29:02 - Revision: 1.1
- kbnosurvey kbarchive kbenv kbhowto KB297789