Domain Participation Tools (Windows Embedded Standard 2009)
4/23/2012
You can use a domain participation tool to add your target system to a network domain. Netdom.exe is a tool that joins a computer to a domain through a command-line interface
You can also use the NetJoinDomain function to create a customized application for adding your target system to a domain. This function is part of the standard Win32 API.
The following example shows how to use the NetJoinDomain function.
dwError = NetJoinDomain( *szComputerName ? szComputerName : NULL,
szDomain,
NULL,
szUser,
szPassword,
dwFlags );
if( dwError != NERR_Success )
{
//handle error
}
else
{
//success
}
See Also
Tasks
Automatically Joining a Domain with a Custom Application
Other Resources
Domain Participation
Add Security Features to a Run-Time Image