Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Regestry read

2 views
Skip to first unread message

MarkusLang

unread,
Sep 8, 2011, 3:38:32 AM9/8/11
to
Hello
i am new here and i want to read a value from the regestry

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

0 new messages