sorry,I'm poor in English,I have a trouble with "objget" and "for...in...next".
' VBScript。
Set LoginProfiles = GetObject("winmgmts:").InstancesOf ("Win32_NetworkLoginProfile")
for each Profile in LoginProfiles
WScript.Echo Profile.Name
WScript.Echo Profile.LastLogon
next
'au3.
$loginprofiles=ObjGet("winmgmts:Win32_NetworkLoginProfile")
;MsgBox(0,"",$loginprofiles)
For $profile In $loginprofiles
;MsgBox(0,"",$loginprofiles)
$text=String($profile.Name)
MsgBox(0,"", $text)
;MsgBox(0,"", $profile.LastLogon)
;MsgBox(0,"",objname($loginprofiles))
Next
but, why $profile.Name have no value?