Finding Workgroup through code (1 Viewer)

John.Woody

Registered User.
Local time
Today, 08:03
Joined
Sep 10, 2001
Messages
354
How do you find your computer's workgroup through code?
I have the computer name but am stuck on finding the workgroup
 

Travis

Registered User.
Local time
Today, 00:03
Joined
Dec 17, 1999
Messages
1,332
Check out :vbNet

Search for "Workgroup". You will get some API Code on how to get the Network Workgroup information.
 

John.Woody

Registered User.
Local time
Today, 08:03
Joined
Sep 10, 2001
Messages
354
Thank you Travis, I'd looked through Access but not the VB. I found what I needed there.
 

ghudson

Registered User.
Local time
Today, 03:03
Joined
Jun 8, 2002
Messages
6,194
John, could you post what you found or send it to me?

I have been looking off and on this week for grabbing NT User info and I came across this code but I do not remember where I found it. Here is a sample db using the code...

Does my sample db do the same thing that you found?

Thanks!
 

Attachments

  • nt_userinfo.zip
    14.1 KB · Views: 128

John.Woody

Registered User.
Local time
Today, 08:03
Joined
Sep 10, 2001
Messages
354
Ghudson

We're doing the same thing, as you can see. The only thing I can't do yet is get the workgroup name off a Win98 PC. NT works fine.

Hope it helps you.

John
 

Attachments

  • getsysteminfo.zip
    33.3 KB · Views: 110

Users who are viewing this thread

Top Bottom