I didn't test this code so I make no claims to it working right out of the box, but you can modify it to get it working. You can also add other adsi attributes you want as well.
'----------------------------------------------------------------------
set onet = createobject("WScript.Network")
adsCompPath = "WinNT://" & onet.ComputerName
set onet = nothing
compFilter = array("User")
set compObj = getobject(adsCompPath)
compObj.filter = compFilter
'Symantec stuff
'Create instance of Altiris NSE component and set the header data of the NSE
dim nse
set nse = WScript.CreateObject ("Altiris.AeXNSEvent")
' Please don't modify this GUID. This is the 'Inventory Capture Item'.
nse.To = "{1592B913-72F3-4C36-91D2-D4EDA21D2F96}"
nse.Priority = 1
dim objDCInstance
set objDCInstance = nse.AddDataClass ("{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}")
dim objDataClass
set objDataClass = nse.AddDataBlock (objDCInstance)
on error resume next
for each userObj in compObj
'wscript.echo userObj.Name & vbcrlf & nsdate(userObj.PasswordExpirationDate)
set objDataRow = objDataClass.AddRow
objDataRow.SetField 0, userObj.Name
objDataRow.SetField 1, nsdate(userObj.PasswordExpirationDate)
next
set compObj = nothing
wscript.echo "Done"
'Function from dougj: http://98.129.119.162/connect/fr/blogs/vbscript-convert-datetime-stamp-nsdate-format
' I fixed the PM/AM bug
function nsDate(curDate)
'remove " AM" and " PM" from the end of the value
cd = Mid(curDate,1,len(curDate)-3)
'wscript.echo Right(curdate, 2)
'Separate date & time values
pos=InStr(cd," ")
dt = Mid(cd,1,pos)
tm = Mid(cd,pos+1,len(dt))
'Separate year, month & date portions of the date value
posa = InStr(dt,"/")
posb = InStr(posa+1,dt,"/",1)
mm = Mid(dt,1,posa-1)
dd = Mid(dt,posa+1,posb-posa-1)
yy = RTrim(Mid(dt,posb+1,len(dt)))
if len(mm) = 1 then mm = "0" & mm end if
if len(dd) = 1 then dd = "0" & dd end if
'Separate hour, minute & second portions of the time value
posa = InStr(tm,":")
posb = InStr(posa+1,tm,":",1)
hh = Mid(tm,1,posa-1)
mi = Mid(tm,posa+1,posb-posa-1)
if Right(curdate, 2) = "PM" then
'wscript.echo "Made it ehere"
hh = hh + 12
end if
ss = RTrim(Mid(tm,posb+1,len(tm)))
if len(hh) = 1 then hh = "0" & hh end if
if len(mi) = 1 then mi = "0" & mi end if
if len(ss) = 1 then ss = "0" & ss end if
'Rebuild the date in nsdate format (CCYY-MM-DDTHH:MM:SS)
nsDate = yy & "-" & mm & "-" & dd & "T" & hh & ":" & mi & ":" & ss
end function 'convertDate