EnableDhcp.vbs Syntax

command promptOpen command prompt now.


One Step1. EnableDhcp.Vbs /A adapter [/S server] [/U username] [/W password] [/O outputfile]

One Step2. EnableDhcp.Vbs /L [/S server] [/U username] [/W password] [/O outputfile]

Where:

/A adapter
enables DHCP for the specified network adapter service name.
/L
lists all the servicenames of all network adapters available.
server
is a computer name.
username and password
are the user name and password of the current user.
outputfile
is the output file name.