Quote:

I have no idea if it would work or not, but just to throw it out there...could you add a value to the default users run key?




Yeah, but that'd would run any time and not just for the first one, no?

K,

Here's how I'd solve this :

Code:


dim $LogonList, $aMachines, $_


$LogonList = @scriptdir + "\logonlist.ini"
$aMachines = split(readprofilestring($LogonList,@userid,"UserLoggedOnTo"),",")


if ascan($aMachines,@wksta) = -1
"Run your executable here!" ?
if not @error ; or whatever it takes to proof successful run
if $aMachines[0]
redim preserve $aMachines[ubound($aMachines) + 1]
endif
$aMachines[ubound($aMachines)] = @wksta
$_ = writeprofilestring($LogonList,@userid,"UserLoggedOnTo",join($aMachines,","))
endif
endif



this will maintain a list of machines any user has logged on to so far and if the current machine doesn't match this list it may execute the thing you need to execute.

hth
_________________________