And what about these users logging on to non-company PC's? Maybe better to use @WKSTA to check if the PC is owned by the company...
Kinda like:

code:

$Company_PC_List = "Server\Share\Folder\List.txt"
$x=Open(1,$Company_PC_List,2)
$Computer = ReadLine(1)
While $Computer <> ""
If $Computer = @WKSTA
; Computer is company owned, so install NAV
$x=Close(1)
Goto NAV_Install
Else
ReadLine(1)
Endif
Loop
Exit

:NAV_Install
; Code to install NAV
Exit



_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.