| | |
How to extract user network login name with vbscript?
![]() |
•
•
Join Date: May 2005
Posts: 1
Reputation:
Solved Threads: 0
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:
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:
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.
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.
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.
![]() |
Similar Threads
- how to get network login user name (ASP.NET)
- network login problem (Windows NT / 2000 / XP)
- how to get network login user name (ASP)
- VB6 & Access (user name, network printer, reminders) (Visual Basic 4 / 5 / 6)
- How to make a user account login by default (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Max number of controls per form......
- Next Thread: playing mp3 files on the click of a button
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows







Nice One.