>Then when I did:
>
> oNet = CREATEOBJECT("WScript.NetWork")
> lcDomainName = oNet.UserDomain
>
>it set lcDomainName = "Bob", but shouldn't it have set it to "Work1" instead?
Well, a worksgroup is not exactly a domain. For ADSI purposes, they are often interchangeable, but it doesn't surprise me that the WSH network object doesn't substitute the workgroup for the domain. You can try getting a better binding string with:
oComputer = GETOBJECT("WinNT://MYCOMPUTER,Computer")
cParent = oComputer.Parent
cParent will hold the binding string to the computer's parent object... appending a "/" and the computer name to it will generally get you the most direct binding string.
Erik Moore
Clientelligence