I am using a vbscript to retrieve local user account details. This script uses the Win32_Account .
An excerpt from that script:
If (bWMILocalAccounts) Then
ReportProgress " Gathering local users"
Set colItems = objWMIService.ExecQuery("Select Description, Name, FullName, LocalAccount from Win32_UserAccount Where Domain='" & strComputerSystem_Name & "'",,48)
Set objDbrLocalAccounts = CreateObject("ADOR.Recordset")
objDbrLocalAccounts.Fields.Append "Description", adVarChar, MaxCharacters
objDbrLocalAccounts.Fields.Append "UserName", adVarChar, MaxCharacters
Is it possible to read the ‘Environment -> Starting Program’ path?

The info you’re looking for is coming from ADSI, so I searched a bit and found this link on virtualizationadmin.com. It provides a nice table showing which fields in the Active Directory Users and Computers tab match their attribute for use in a script (batch, vbs, etc.).
With that info in hand, activexperts.com gives a great sample VBScript to display this info, as copied here, which you can work into your script.