Anyone have a piece of code that will determine the domain the computer is joined to? Or a function that will return if the computer is joined to a domain or not, and what is the domain or workgroup.