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