Click here to Skip to main content
15,902,938 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Database or no database in Software development? Pin
Dave Kreskowiak13-Jun-10 5:25
mveDave Kreskowiak13-Jun-10 5:25 
AnswerRe: Database or no database in Software development? Pin
PIEBALDconsult13-Jun-10 18:51
mvePIEBALDconsult13-Jun-10 18:51 
GeneralRe: Database or no database in Software development? Pin
cyberexel14-Jun-10 23:10
cyberexel14-Jun-10 23:10 
GeneralRe: Database or no database in Software development? Pin
PIEBALDconsult15-Jun-10 3:10
mvePIEBALDconsult15-Jun-10 3:10 
GeneralRe: Database or no database in Software development? Pin
Eddy Vluggen15-Jun-10 3:36
professionalEddy Vluggen15-Jun-10 3:36 
GeneralRe: Database or no database in Software development? Pin
Dave Kreskowiak15-Jun-10 5:35
mveDave Kreskowiak15-Jun-10 5:35 
AnswerRe: Database or no database in Software development? Pin
T M Gray15-Jun-10 8:17
T M Gray15-Jun-10 8:17 
QuestionJoin computer to domain using vb.net Pin
SIFNOk12-Jun-10 7:43
SIFNOk12-Jun-10 7:43 
Hi All,

Im developing a app that joins a computer to a domain, but having trouble implementing it using vb.net, any one assist or had the same issue.

Much would be appericatied.

Regards

Dave

Below is the code i have so far to join a computer to a domain :S
Dim args(4) As String
       'Dim args2(2) As String

       Dim retVal As Long
       Dim comp As System.Management.ManagementObject
       Dim comps As System.Management.ManagementObjectCollection
       Dim clsComps As New System.Management.ManagementClass("Win32_ComputerSystem")
       comps = clsComps.GetInstances()
       For Each comp In comps
           'This is used to unjoin the domain
           ''args2(0) = "Password"
           ''args2(1) = "User with privs"
           ''args2(2) = "0"
           ''comp.InvokeMethod("UnjoinDomainOrWorkgroup", args2)

           'this is used to join the domain
           args(0) = txtdomain.text 'Took out our FQDN for this posting
           args(1) = "txtpassword.text 'I took the password info out for this posting
           args(2) = txtadminaccount 'I changed the admin account info for this posting
           args(3) = "ou=Workstations"
           args(4) = 1
           For x = 0 To 4
               'read back each value for debugging
               MsgBox(CStr(args(x)))
           Next
           retVal = comp.InvokeMethod("JoinDomainOrWorkgroup", args)
       Next
       Return retVal

AnswerRe: Join computer to domain using vb.net Pin
Abhinav S12-Jun-10 22:09
Abhinav S12-Jun-10 22:09 
AnswerRe: Join computer to domain using vb.net Pin
Rob Branaghan28-Apr-11 0:20
Rob Branaghan28-Apr-11 0:20 
AnswerrootSearch = New DirectorySearcher(root) Pin
Mike Phares Jr11-Jun-10 20:45
Mike Phares Jr11-Jun-10 20:45 
GeneralRe: rootSearch = New DirectorySearcher(root) Pin
saini arun11-Jun-10 20:57
saini arun11-Jun-10 20:57 
GeneralRe: rootSearch = New DirectorySearcher(root) Pin
Abhinav S12-Jun-10 6:04
Abhinav S12-Jun-10 6:04 
GeneralRe: rootSearch = New DirectorySearcher(root) Pin
Pete O'Hanlon12-Jun-10 9:10
mvePete O'Hanlon12-Jun-10 9:10 
QuestionMLM TREE Pin
vijayksh11110-Jun-10 7:18
vijayksh11110-Jun-10 7:18 
AnswerRe: MLM TREE Pin
Dr.Walt Fair, PE10-Jun-10 7:30
professionalDr.Walt Fair, PE10-Jun-10 7:30 
AnswerRe: MLM TREE Pin
Pete O'Hanlon10-Jun-10 22:37
mvePete O'Hanlon10-Jun-10 22:37 
AnswerRe: MLM TREE Pin
_Ashish8-Jul-10 6:34
_Ashish8-Jul-10 6:34 
QuestionDo you still need 3.5 if you only install 4.0? Pin
Randar Puust10-Jun-10 4:59
Randar Puust10-Jun-10 4:59 
AnswerRe: Do you still need 3.5 if you only install 4.0? Pin
Peace ON10-Jun-10 5:16
Peace ON10-Jun-10 5:16 
GeneralRe: Do you still need 3.5 if you only install 4.0? Pin
Luc Pattyn10-Jun-10 5:33
sitebuilderLuc Pattyn10-Jun-10 5:33 
GeneralRe: Do you still need 3.5 if you only install 4.0? Pin
Richard MacCutchan10-Jun-10 5:45
mveRichard MacCutchan10-Jun-10 5:45 
AnswerRe: Do you still need 3.5 if you only install 4.0? Pin
dan!sh 10-Jun-10 6:15
professional dan!sh 10-Jun-10 6:15 
AnswerRe: Do you still need 3.5 if you only install 4.0? Pin
Anshul R10-Jun-10 20:03
Anshul R10-Jun-10 20:03 
AnswerRe: Do you still need 3.5 if you only install 4.0? Pin
AnnieMacD12-Jun-10 3:20
AnnieMacD12-Jun-10 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.