User informatiion

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

Is there anyway I can findout if the user is logged on to the local domain
and if that user belongs to a particular group.

Thanks for any help.
Fred
 
there are several more advanced solutions but this works for me in winXP:

Sub User()
MsgBox Environ$("username") & vbNewLine & _
Environ$("userdomain") & vbNewLine & _
Environ$("logonserver")
End Sub


keepITcool

< email : keepitcool chello nl (with @ and .) >
< homepage: http://members.chello.nl/keepitcool >
 
Thanks Rob.

Rob Bovey said:
Hi Fred,

I've attached a small program I use to troubleshoot network login
problems. It shows how to acquire the info you're looking for. Note that it
will only work on Windows NT/2000/XP/2003 operating systems. The Win9x
operating system family doesn't support the necessary APIs.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top