Page 1 of 1 1
Topic Options
#14365 - 2001-11-16 04:46 PM Del Registry Value
Luidi Andrade Offline
Fresh Scripter

Registered: 2001-11-14
Posts: 5
Loc: Brazil

I need to clean usernames history at Windows 95 and 98 ... I try to delete the subkey DelValue("HKEY_LOCAL_MACHINE\Network\Logon","username")
but its not ok ...

I already insert at registry the key dontshowlastuser,regdword,1

Can any1 helpme????

Top
#14366 - 2001-11-17 12:08 AM Re: Del Registry Value
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

We have verify your code and it should work correct, but it is possible that
during the logon phase you can't remove this value.
We have extend your code to see what is happening.
Please run it and return the result on the board.

code:

? "Actual Username: "+@userid
? " Registry value: "+ReadValue("HKEY_LOCAL_MACHINE\Network\Logon","username")
IF (DelValue("HKEY_LOCAL_MACHINE\Network\Logon","username") <> 0)
? "Status removing value: @error (@serror)"
ELSE
? "Status removing value: no error"
ENDIF
? "Current Registry value: "+ReadValue("HKEY_LOCAL_MACHINE\Network\Logon","username")


This registry key doesn't have influence on your kixtart @userid macro.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
0 registered and 931 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.051 seconds in which 0.027 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