I am sorry but it is seems to me that you have already written the solution.
Do you want to know how to modify your original script?
Try this:
''POPULATES AD WITH USER LOGON INFO IN DESCRIPTION FIELD
Set objSysInfo = CreateObject("ADSystemInfo")
unEscapedUserName = Replace(objSysInfo.UserName, "/", "\/")
Set objUser = GetObject("LDAP://" & unEscapedUserName)
Set objUser = GetObject("LDAP://" & Replace(objSysInfo.UserName, "/", "\/"))
Set objComputer = GetObject("LDAP://" & objSysInfo.ComputerName)
strSerial= SerialNumber
strMessage1 = " Authenticated on: " & objComputer.CN & " at " & Now & ". MAC: " & MACAddresses(".") & strSerial
strMessage2 = strSerial & " MAC: " & MACAddresses(".") & "." & " Authenticated by: " & objUser.CN & " at " & Now & "."
objUser.Description = strMessage1
objUser.SetInfo
objComputer.Description = strMessage2
objComputer.SetInfo
function MACAddresses(strComputer)
dim objWMI, colItems, objItem
dim strMac
strMac=""
Set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMI.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration where IPEnabled=TRUE",,48)
For Each objItem in colItems
if objItem.MACAddress<>"" then strMac=strMac & objItem.MACAddress & vbCrLf
Next
MACAddresses = strMac
end function
function SerialNumber
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BaseBoard")
For Each objItem in colItems
For Each strOption in objItem.ConfigOptions
Next
SerialNumber = "Serial Number: " & objItem.SerialNumber
Next
end function
I hope I have understood your question
kemi67