943,682 Members | Top Members by Rank

Ad:
May 14th, 2005
0

How to extract user network login name with vbscript?

Expand Post »
Hi,
I have an application (a web browser control within a vb6 form) which shows users their weekly schedule. At the moment they have to input their user id to see the schedule. What I want to do is have their schedules automatically appear according to their network login. I know there is a vbscript for determining the users network login name. Most of the users will be using NT4 with novell client. But they will soon be moving to XP/ADS. I need a script that works in both environments. I would appreciate if someone can help on this.

:lol:
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pomahony is offline Offline
1 posts
since May 2005
May 14th, 2005
0

Re: How to extract user network login name with vbscript?

The only thing that I can think of, is that there has to be something in the registry that holds this information. I mean, VBScript has a method of an object that can get the name of the user currently logged in, but I dunno about retrieving novel's login.... I'll see if I can't find the registry key, but I don't have novel, so it's all google.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
May 18th, 2005
1

Re: How to extract user network login name with vbscript?

hi, just a thought...

i can extract users login name by using VB's SysInfo control, here's how:


load the SysInfo control by doing this:

1. In the VB IDE click "Project" upper menu.
2. Then "Components"
3. From the list, search for the "Microsoft SysInfo Control" and click
it.
4. Put the control on the form.



then declare first...
Public sysInfo2 As New ActiveDs.WinNTSystemInfo 'declaration for using
'the active directory
'type library
Public SysUser As String


'get the username

SysUser = sysInfo2.username
text1.text = trim(Sysuser)


hope this one works for you...good luck.
Reputation Points: 11
Solved Threads: 0
Light Poster
vhinehds is offline Offline
29 posts
since May 2005
May 18th, 2005
0

Re: How to extract user network login name with vbscript?

Nice One.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Max number of controls per form......
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: playing mp3 files on the click of a button





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC