is there any multiplatform method to identify user account, system or entire computer? Something like:
CreateObject("Scripting.FileSystemObject").GetDrive("C:\").SerialNumber
It may use some combinations of username and other variables to build (quite) unique ID text/number. Maybe should I use Environ? But where can I find complete list multiplatform Environ working variables? It may use OS identification also.
EDIT some starting code to clarify my question
Sub GenerateID()
#If Mac Then
'------- Mac ---------------
MsgBox MacIdNumber
#Else
'------- Windows -----------
MsgBox WindowsIdNumber
#End If
End Sub
Function MacIdNumber() As Long
Dim str1, str2, str3 ' str4, str5...
str1 = VBA.Environ$("USER")
str2 = Application.Version
str3 = Application.OperatingSystem
' and here I am looking for another ideas
' str4 = ...???
MacIdNumber = CreateUniqueId(str1, str2, str3)
End Function
Function WindowsIdNumber() As Long
Dim str1, str2, str3, str4 ', str5...
str1 = CreateObject("Scripting.FileSystemObject").GetDrive("C:\").SerialNumber
str2 = VBA.Environ$("USERNAME")
str3 = Application.Version
str4 = Application.OperatingSystem
' and here I am looking for another ideas
' str5 = ...???
' but maybe for Windows disc SerialNumber is enough
WindowsIdNumber = CreateUniqueId(str1, str2, str3, str4)
End Function
Function CreateUniqueId(ParamArray str() As Variant) As Long
' here I'll make checksum
' some calculations...
End Function
I am trying to get as unique ID strings as possible (but I know it probably won't be 100% unique).
It must work in reliable way for MAC 2016 and higher and Windows versions of course. So If you give an idea with apple script- I must be sure that no endless loop/ error occurs.
I am Windows user and I am not able to test it on MAC right now.