Page 1 of 1 1
Topic Options
#70035 - 2002-09-20 05:36 PM DHCPInfo Registry key
ElGuapo Offline
Starting to like KiXtart

Registered: 2002-06-19
Posts: 100
I would like to automate the removal of HKKey_Local_Machines\System\CurrentControlSet\Services\VxD\DHCP\DHCPINFOXX where XX are numbers such as 00, 01, etc, through a login script.

There could be multiple occurences of DHCPInfoXX. Once removed, I do not want to remove them again.

I could actually probably get away with just modifying the DHCPServer key within DHCPINFOXX.

Any ideas on the best way to accomplish this?

Top
#70036 - 2002-09-20 05:46 PM Re: DHCPInfo Registry key
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use the ArrayEnumValue() UDF to enumerate the registry values and delete them one by one.

[ 20. September 2002, 17:53: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#70037 - 2002-09-20 06:17 PM Re: DHCPInfo Registry key
ElGuapo Offline
Starting to like KiXtart

Registered: 2002-06-19
Posts: 100
Just found out that Q171424 describes what I want to do. Now I just have to find the best way to limit it to running once.

; This file called Del-Reg.INF deletes the registry entries listed
; under the [RegChange] section. In this example it deletes the
; UserName value name under the key HKLM\network\Logon

[Version]
signature="$CHICAGO$"

[DefaultInstall]
; DelReg = RegChange

[RunIt]
DelReg=RegChange

[RegChange]
HKLM,Network\Logon,username
HKLM,Network\Logon\keyname,

Top
#70038 - 2002-09-20 07:00 PM Re: DHCPInfo Registry key
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Try creating your own key or copying a flag file to the system. Then check for your key or flag file to show you have already done the removal.
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 476 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.051 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org