UnkEvil Posted December 14, 2013 Share Posted December 14, 2013 Hello Peoples! My Question Is If Exists an Way to verify If exists Another Users on Computer With AutoIT ? Like The Macro @User But Showing Other Users! Sorry My Bad English! Link to comment Share on other sites More sharing options...
Solution mikell Posted December 14, 2013 Solution Share Posted December 14, 2013 Local $txt = "" Local $objWMIService = ObjGet("winmgmts:\\localhost\root\CIMV2") Local $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_UserAccount", "WQL", 0x10 + 0x20) If IsObj($colItems) Then For $objItem In $colItems If $objItem.Disabled = False Then $txt &= $objItem.Name & @crlf Next EndIf Msgbox(0,"", $txt) UnkEvil 1 Link to comment Share on other sites More sharing options...
UnkEvil Posted December 22, 2013 Author Share Posted December 22, 2013 Thanks! Its Work. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now