Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: DHCP WINIPCFG /BATCH
WINIPCFG /BATCH /ALL C:\TEMP\FILENAME.TXTThen you parse the file above (FILENAME.TXT or any other name) for the line
DHCP Enabled. . . . . . . . : Yesor any other info you may want.
I do not want to run a seperate program and parce the information from a text file. To many things can go wrong this way.
;this key will give you all IP related information including EnableDHCP. ;to determine which NIC Card you have in your system, check out.. HKLM\System\CurrentControlSet\Services\%NICCard%\Parameters\TCPIP") HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkCards\%i%
Article ID: W13142
Filename: Detect if a User is Running DHCP.txt
File Created: 2001:01:26:13:29:10
Last Updated: 2001:01:26:13:29:10