Hi Bobby,
Here is the sample script adapted to TestComplete:
Sub GetAllUsers
Dim wmiService, computerName, objectsList, user
computerName = "."
Set wmiService = GetObject("winmgmts:"&"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objectsList = wmiService.ExecQuery ("Select * from Win32_UserAccount Where LocalAccount = True")
For Each object in objectsList
user = "Account Type: " & object.AccountType & vbCrLf &_
"Caption: " & object.Caption & vbCrLf &_
"Full Name: " & object.FullName
Call Log.Message("UserInfo", user)
Next
End Sub