Ja:

Here's a quick and dirty way to do this...

This script uses a registry cookie to determine if the code of conduct message has been presented and agreed to by the user.

If your user's have roaming profiles, they'll get this message only once. If not roaming, they'll get this the first time they log into any new workstation...


code:

break on


$key= "software\yourcompany\logon"
$value= "conduct"
$yes= 6


$title= "Code of Conduct"


$notice="


Hey You !


Do you promise to be a good boy ?


"


if val(readvalue ("$key","$value")) <> $yes


$answer= messagebox("$notice","$title",4)


if $answer= $yes


$= addkey("$key")
$= writevalue("$key","$value","$answer","REG_DWORD")


else


?"how dare you... logout!"


endif


endif

exit


Hope this helps...

Shawn.

[This message has been edited by Shawn (edited 11 December 2000).]