In vbs it works fine .
VBS:
----------------
Dim sKey
Dim sUser
DIm WshShell
set WshShell = CreateObject("WScript.Shell")
sKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
\Winlogon\DefaultUserName"
sUser = WshShell.RegRead(sKey)
wscript.echo "Password : " & sUser
Now i want to do the same in with wmi.
Please can anybody help me ?
Regards
mark