script the NETSH commands
Posted on 2009-04-23
I need to enter the commands below in batch file. how can I do that?
I tried it but it just open Netsh window and stays there.
Adding DHCP option 60 to Windows 2003 DHCP server
By default, option 60 is not set on Windows® 2003. If the OS deployment server is running on the same host as the DHCP server, you have to add this option and set its value to PXEClient in order to tell PXE clients where to find the OS deployment server.
Open a command window.
Enter dhcp 4.
Enter server \\hostname or server ip_address. A command prompt that says: dhcp server> is displayed.
Enter add optiondef 60 PXEClient STRING 0 comment=option added for PXE support
Enter set optionvalue 60 STRING PXEClient
To confirm that everything has been set correctly, enter:
show optionvalue all