I use the following module to get computer ID, user name, user full name, IP address, etc using API. HIH.
Option Compare Database
Option Explicit
Declare Function wu_WNetGetUser Lib "advapi32.dll" Alias "GetUserNameA" (ByVal sUser As String, nBuffer As Long) As Long
Declare Function...