Hello World,
This is the batch file sample that can be used to automate the setup of a TFTP/PXE server on a windows 2003 box. Some limitations apply on this “basic” batch file. The limitations are the following :
- batch file has been tested on windows 2003. batch file as is will not work on Windows 2008.
- DHCP service should be installed before the script run
- You need to modify the script in order to reflect your environment
- Use the script at your own risk ! I’ll not be held responsible for any damage you might experience. The script is provided to you “AS IS”
Copy this text to notepad and save it as batch file (.bat extension)
@echo off Rem Basic batch file to quickly configure a Windows 2003 box with TFTP service capabilities REM ***************************************************************************** SET STRDIR=C:\TFTPROOT cls REM DO NOT REMOVE THIS SECTION Echo ——————————————– copy %systemroot%\system32\dllCache\tftpd.exe %systemroot%\system32\ Echo ——————————————– sc create TFTPD binpath= c:\windows\system32\tftpd.exe start= auto Echo ————————————————————- MKDIR %STRDIR% Echo ——————————————– Echo IS DHCP SERVICE INSTALLED ? Press Y to Proceed, Press Ctrl+C to Abort !” netsh dhcp server add scope %DHCPIPSCOPE% %DHCPIPSUbnet% %DHCPSCOPENAME% %DHCPSCOPEDESC% Echo ——————————————– pause |
That is for this post
Note: A new version of this script is being developed ! You will get a nice GUI to setup your TFTP/PXE infrastructure.
See ya
I liked this article.It was helpful. Keep on posting!