I am converting my WMI scripts from vbscript to VB.NET.
This one is use to get current login username from a remote computer:cool: :
Dim objWMIService, objComputer As Object
Dim colComputer As Collection
Dim logUsername As String
objWMIService = GetObject("winmgmts:" _
&...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.