Ok thanks that worked but now i want it also to look if you are loggin into an NT server as well (NT 4.0 and 2000 servers). I've tried different things but they don't work. It just logs in without running the script. I know this is easy but i can't figure it out.

$rtn=ReadValue("hkey_local_machine\system\currentcontrolset\control\productoptions","producttype")
$execute_mode="yes"
IF (INGROUP("Domain Admins") <> 0 AND ($rtn="SERVERNT"))
$answer=MessageBox("Administrator, do you want to run the login script?","Message",20,60)
IF ($answer = 7) ; - 7 = No -
$execute_mode="no"
ELSE ; - 6 = Yes / -1 = No response from user -
$execute_mode="yes"
ENDIF
ENDIF
IF ($execute_mode <> "yes")
GOTO end_script
ENDIF