User informatiion

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
 
K

keepITcool

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 >
 
F

Fred

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 *
 
Top