ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   User informatiion (https://www.excelbanter.com/excel-programming/303087-user-informatiion.html)

fred

User informatiion
 
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



keepITcool

User informatiion
 
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


"Fred" <leavemealone@home wrote:

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





fred

User informatiion
 
Thanks Rob.

"Rob Bovey" wrote in message
...
"Fred" <leavemealone@home wrote in message
...
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.


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 *







All times are GMT +1. The time now is 12:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com