R_B_EAZIE
The Robin Hood of GTA
hello Guys,
Is there anyone here that could help me out, I have a VBS script that i would like to translate and use in Visual studio 2010,
all the vbs does is query a domain users SID and display it for me, id like it in VS2010 so i can carry on with further functions and also create a GUI,
thanks in advance
Is there anyone here that could help me out, I have a VBS script that i would like to translate and use in Visual studio 2010,
'''FINDING THE USERS SID
struser = InputBox ("USER")
struser2 = "'" & struser & "'"
'WScript.Echo struser2
Set objNetwork = CreateObject("WScript.Network")
Set objShell = CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set objAccount = objWMIService.Get("Win32_UserAccount.Name="& struser2 &",Domain='" & objNetwork.UserDomain & "'")
strValue = objAccount.SID
WScript.Echo "SID is " & strValue
struser = InputBox ("USER")
struser2 = "'" & struser & "'"
'WScript.Echo struser2
Set objNetwork = CreateObject("WScript.Network")
Set objShell = CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set objAccount = objWMIService.Get("Win32_UserAccount.Name="& struser2 &",Domain='" & objNetwork.UserDomain & "'")
strValue = objAccount.SID
WScript.Echo "SID is " & strValue
all the vbs does is query a domain users SID and display it for me, id like it in VS2010 so i can carry on with further functions and also create a GUI,
thanks in advance