General information
Category:
Windows API functions
I right-clicked on the Network icon on my desktop and under the Identification tab it shows:
Computer Name: Bob
Workgroup: Work1
(Yeah, I know, real creative).
When I use:
oUser = GETOBJECT("WinNT://Bob/Lance,User")
It takes a while the first time, but it eventually works.
When I use:
oUser = GETOBJECT("WinNT://Work1/Bob/Lance,User")
It works immediately.
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?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only