I need to join my box to the domain, but thru a program and not from command line. Is there a call equivalent to net rpc join that will do the job or should I do system("net rpc join ****"); ?
What is your programming language ? C ?
I quite don't understand where you're stuck:
system("same thing as if you typed from command line")
If you have variables then you may consider the sprintf function.
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
I don see an option in net help that lets u pass password? Or I am not seeing properly? We wait for it prompt for password when we type from command line.
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.