Users Logged In NT
Hi Guys,I would like to know whether it is possible to get all the users logged in the NT Network.If Possible please provide me with the code.This is very very urgent.I have tried with some API's but n vain.Thanxminnal
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Get Users Who Are Logged On?
Hello
I was wondering if anyone could point me in the right direction.
I need to search our local school network to check which users
are logged on. Its for a IM type system so i need to build a list of
logged on users so i know that they exist.
i was wondering if i would use api's to do the searching and to capture the
console output?
Im looking to do the searching in vb as i have the IM system partly build in java.
Anyone that could point me in the direction of some good book or sites that give a good lesson on the theory would be of great assistance
thank you.
Get Logged In Users Name
how can i get the logged in users name, not the username, i can get that, but just their name.
Thanks
Get All Logged On Users
Can anyone give me any ideas or examples as to how I can get the username of all logged on users on a network.
Thanks,
Jenova
Logged On Users
How can I get a list of the currently logged on users on Windows XP?
List Logged On Users
Hello
I want to be able to get a list of all the logged on users logged on to a Windows 2003 Server (or the Windows 2000 Server Family; because they are very similar). I have some code that i tried on a domain-less network (workgroup) and it worked by providing the users that were connected to my computer using my files. But i assume that Windows 200x Server login works different because it doesn't returns any users logged on.
I have attached the project that i made to try to get it to work.
Thanks in advance for any help your can provide
Regards, Jono
Users Currently Logged On To A Domain
I have been searching the forum and found a link to the following code.
VB Code:
Private Sub Command1_Click()Set objDomain = GetObject("WinNT://domain_name,domain")objDomain.Filter = Array("User") For Each objuser In objDomain Wscript.Echo objuser.NameNext End Sub
modified slightly to suit my domain this returns all the user accounts present on the domain. is there any way of returning there status ? i.e logging in
i assume it is to do with the
objuser
i have looked through the object browser and canot find this or a list of its .operators
could anyone help with a list of the operators availible to this ??
i do not have MSDN installed
thanks in avance
Joey
VB Code To Find SQL Users Logged In
Hi all! I'm going to make this question kind of 2-fold in the event that someone has ALL the answers...
I have 1 VB6 program that imports data into a SQL database from our mainframe, and 1 VB6 program for our users that allow them to interact and edit data in the SQL database. The VB6 import program is scheduled to run during non-business hours; however, as I'm sure all are aware, there are times when it may need ran at other times. Here is the 2-fold question:
1. I'm trying to figure out how to code my import program to determine if there are any users logged into the SQL database.
2. If there are, then I would like to call a sub-routine in their VB program to display a message box asking them to exit...or maybe a net-send using their NT login...hmmm...any thoughts.
This might be 3-fold...
3. Can I also code my import program to kick any users out of the database if they are not logged off within a certain amount of time?
I am new with SQL security and its relation to multiple users with edit rights. I would like very much to learn more, so if anyone has any recommendations I would be forever grateful!
Thank you sooooo much!
How To Get List Of Users Logged Onto A Domain
I want to write a stand alone app that will take whoever is logged on our company's domain and dump that list to HTML every so many minutes (to see who is in the office).
Can anyone help?
We have 1 share that everyone connects to, and I tried using NET SHARE "SHARENAME" > userdump.txt
And pulling users from that - BUT it wasn't truly listing everyone that was signed on....
I've found some source that shows this but none of it works...
Anyone?
Chris
Get A List Of Users Logged In A Domain
hi.. does anyone know how to get a list of usrs logged in a domain.. ie.. a Win2k comp.. and to retreive other info such as what type the user is.. ie.. administrator, guest, etc. and the IP adress or the computer name.
thanks
Obtain Name Of Users In All Computers Currently Logged In.
hi frnds,
My requirement is to list the current computers connnected to the netqwork and the users on all those computers. I am using Windows 98 and VB 6.0. Can any body help ?
Regards Saneesh
Edited by - issacgeorge on 11/17/2004 9:17:27 AM
NT Users Logged In...Code People Have Wanted...Must See
So many people, including myself have asked how to check for users logged in. After many attempts I have found ways to do it, with help from others here.
I thought I'd share my code with you all, here goes:
Damn, posted the original thread in API forum
Here's the link:
http://www.vbforums.com/showthread.p...hreadid=147875
Netwrok Information: Users Logged In And PC Names
I have code, using API, which will allow me to view all users who have an NT account on our network. What I need to know is what PC they are logged into...
Does anyone know how to find a users PC name?
Has anyone got a spare fish?
List Of Logged-in Users To Server Network
Hi,
anybody know how to find the list of network users who hav logged in?
let say that my server is Win NT or Win 2000. 10 systems are connected to it.
I've created user accounts.
I want to have a VB program which can tell which user logged in and what time...
i know there is win API "EnumUser" which used to get the list of all the users...
but i want also to know, who are all currently logged in to the windows network...
any idea?
Shankar
List Of Logged-in Users To Windows Network
anybody know how to find the list of network users who hav logged in?
let say that my server is Win NT or Win 2000. 10 systems are connected to it. I've created user accounts.
I want to have a VB program which can tell which user logged in and what time...
i know there is win API "EnumUser" which used to get the list of all the users...
but i want also to know, who are all currently logged in to the windows network...
any idea?
Detecting Users Logged Into Access 2000
Hi all.
Anyone have any success detecting the users logged into Access 2000? I'm trying to use the MS FAQ #198755 without any success ... It is giving me the error "3251: Object or provider is not capable of performing the requested operation." This is my code:
Code:
Private Sub DetectButton_Click()
On Error GoTo Err_DetectButton_Click
Dim FormsConnect As ADODB.Connection
Set FormsConnect = New ADODB.Connection
FormsConnect.CursorLocation = adUseClient
FormsConnect.Open "DSN=Billing Forms;"
Set MyRecSet = FormsConnect.OpenSchema(adSchemaProviderSpecific, , "{947bb102-5d43-11d1-bdbf-00c04fb92675}")
While Not MyRecSet.EOF
MsgBox MyRecSet.Fields(0)
Wend
Set MyRecSet = Nothing
FormsConnect.Close
Set FormsConnect = Nothing
Exit_DetectButton_Click:
Exit Sub
Err_DetectButton_Click:
MsgBox Err.Number & ": " & Err.Description
Resume Exit_DetectButton_Click
End Sub
Any ideas? Thanks.
- Mike
Enumerate Domain And Find Local Logged On Users
All,
I am attempting to write a progam that will find all the computers on my domain, and then tell me who is logged on to that computer and place is information in a listbox, or listview box.
Does anyone have a program that will do this already? I can enumerate my computers, then pass the computer name over to a module that will tell me who is logged onto a given computer name, but it does not produce the results expected. It is having trouble locating the logged on use at this point.
TIA
Power Users And Ordinary Users Installation And Registry Problem
Hi Fellows,
I already tried google on this for days but I was so unlucky that I found nothing. This might be a little bit of Windows administration but it has to do with software. So here I am again consulting the wizards.
I have this dilemma over power users and ordinary users accessing the registry. My problems are the following:
1.) Is there a way that i can refrain local power users from installing programs on their PC? Actually, this user is an ordinary domain user but since this user needs to install a software while logged on his account/profile, I added this particular user's account to local power users group. This software I installed will read/write the registry. When I removed this user from the local power users group, the software will not run because it needs a user account that will read/write the registry something like a power user or an admin.
2.) How can i allow ordinary user to read/write registry hives? This is related to my problem 1. After I installed the software, it prompted that the application will not run/execute because it needs to read and write the registry.
Maybe, this can be solved using the policy editor(gpedit.msc) but the problem is I dont know how to do this. I've used the local policy editor for different settings.
Thank you very much!
All the best!
How Do I Prevent Users From Changing Data From Other Users Using The Function?
There's something that I don't understand.
If you have a program that several users can access at the same time. Then how do I prevent users from changing the outcome of functions and procedures of users which are also using those functions at the same time?
Let's say that user 1 is in a directory which has 20 files. and user 1 starts a function which retrieves the directory listing. He calls the function RetrieveDir(user) where user is 1.
The function then retrieves the list and stores:
Dim x
User(user).file(x) = filename1 x=x+1)
User(user).file(x) = filename2 x=x+1)
etc. etc.
This would work fine, but what if user 2 calls the same function in a directory with ony 4 files
while the function is still working on User(1) file 5?
wouldn't user(2) then get files 5-20 from user(1) while there are only 4 files, and wouldn't user(1) never exit that function?
And doesn't the Dim X that user(2) triggers reset the value of X that user(1) was still using?
um... is it a little clear what my problem is?
How can I make a function so that everyone can access it no matter when and the outcome would be correct even if other users are in that same function at the same time?
ADSI... Can Modify Users, But How Can I Create Users??
Right.. morning everyone. i have to write a vb program that creates a bunch of users in active directory, that are currently in an excel document.
I know it's possible to modify user accounts using ADSI, but i can't find how to create users.. Is this possible??
I'm using:
Dim usr As IADsUser
usr.FullName = "John Smith"
usr.Description = "stuck trying to create accounts"
usr.xxxxxx
but this seems to only seems to let me modify existing accounts, not create new ones..
Any ideas anyone.??
TY
How To Show The BMP To Be Same For All Desktop Users And NoteBook Users
Hai,
I devoloped an VB application in the Win2000 Advanced server. I installed the application to the 2000 Professional and Windows XP users. All the user who have the Desktop is working fine and the bmp in one of my Form is shown correctly. But only for the XP users who have the LapTops i am facing the the problem. I have attached the picture of the Form here.
1. The Picture scr1 is the one the XP LapTops users are getting.
2. The Picture scr2 is the one where all the XP and 2000 Professional users are getting. ACtually this the correct one which i need to show for all the user.
Kindly view the attached picture and tell me how to show a same screen to all the users.
In the Devolopment machine and the XP desktop users have the Pixel 800 by 600 when i set the same for the XP Note book users itks not shwowing fine. its getting too small.
Thank you,
Chock.
Logged On
Hi
Im trying to find VB code that will find out who is logged onto a computer.
Thanks in advance
Who Is Logged In.
hi People,
Im trying to find the VBA code which will return the name of the currently logged in user.
Thanks in advance!!!
Who Is Logged In?
I need a way to determine what group the logged in user belongs to on Win2k. For instance: Administrator's, Power User's, User's...etc. Thanks in advance for any ideas!!
How Do I Know If I Am Logged Into A Website?
My Code is:
Quote:
Private Sub cmdLogin_Click()
Dim strOptions As String
strUser = txtUser.Text
strPass = txtPass.Text
Inet1.Protocol = icHTTP
strOptions = "user=" & strUsername & "pass=" & _
strPassword & "&action=submit"
Inet1.URL = "http://www.site.com/login.php"
Inet1.Execute , "POST", strOptions, _
"Content-Type: application/x-www-form-urlencoded"
End Sub
I am pretty sure that works and is all fine.
But how would I Display "Logged In" or "Try Agian"
Mapping Goes Away When I Am Logged Off
I created a script on my local Windows 2000 workstation that opens up a mapped directory on a Windows 2000 server. It works great in my task scheduler that is scheduled to run at 12:00 each day. The problem is when I am logged off my local workstation and the local workstation task scheduler executes my script that opens up a mapped directory it doesnt work and fails.
Do I lose my mapped directory when I am logged off my workstation?
If this is the case, anyway to keep my mapping when I am logged off because I need the script to run successfully when I am logged off.
CR Not Logged Into SQL Server, How?
created a simple CR 8.5 report for my application. When I was setting up the report I typed in the user name and password for a database in SQL Server. But when I run the program I receive messages that tell me that I am not logged into the server. Here is the code from form1:
Dim Report As New CrystalReport1
Private Sub Form_Load()
Screen.MousePointer = vbHourglass
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub
Private Sub Form_Resize()
CRViewer1.Top = 0
CRViewer1.Left = 0
CRViewer1.Height = ScaleHeight
CRViewer1.Width = ScaleWidth
End Sub
What do need to add to my code in order to log into the server so that I can display my report?
Thanks
Logged On User
Is there any way to retrieve the name of the current logged on user (network) in VB?
Getting Logged On User Name
by which API can i get the userId of the current logged on user in win NT/ Win 2000
is there a way to get all valid list of users in a network in an array
similar to what we see in windows NT (Add user functionality)
Who's The User Logged On...?
Can anyone tell me how I can get(return) the current user logged onto a machine prefably in NT.....?
I know that the Registry holds the last user logged on the machine does it also tell you the current..?
Run A Program Without Be Logged
Is it possible have a VB program with an interface running on a server event if no person is logged?
The program is able to run automatically but if I log in on the server I want to be able to see if my prgram already caught an error.
Detect If Someone Is Logged On To PC.
Is there a way to determine if there is someone currently logged on to the PC of if the PC is at the logon screen?
I have an app that I wrote to send email notifications when a PC is logged off or restarted. I am currently doing this by having it run when the computer starts (Via Windows Task Scheduler with a command line parameter to tell it to shutdown once an email is sent), and also being run on logon via the Startup folder. When running during logon it runs silently and send an email when a loaded form is closed by windows on logoff/shutdown via the form_queryunload event. I would like the app to run with NO UI if no one is logged on when it is running, but if some is logged on, then to provide a UI where the user can modify certain settings.
On a side note: If there is a way to tell that the PC is logging off/shutting down, then I could simply run it as a service and send emails when these states are detected.
Either way, any help in the right direction would be appreciated. I have done extensive google searching and searches of this forum without sucess.
Who Is Logged Onto This Computer?
I am writing some VBA that needs to know who is currently logged onto the computer to insert their login name onto a request form. I know when I record a macro the computer adds a comment to the macro that includes my login name. How can I access the name of the currently logged on user?
Thanks in advance
Last User Logged In.
Hi all,
Is anybody know how to get the last user logged in(local PC).
Please inform ASAP.
Thanks and regards,
Vijay S
Logged User Name
can someone help me out with a VB code to capture the User Name who has logged to the computer.
ThankYou
Last Login And If Currently Logged In
I have a question about login information on a Win2003 Server network.
I need to be able to plug in a user account, and have my VB program tell me:
A. Is the account currently logged in?
B. If not, then when was the last time the account was logged in.
About the only thing that I can find information on is how to retrieve the computer name. Anyone have any ideas?
By the way: I am not an administrator.
Who Is Logged Onto The Network
Perhaps my memory is failing me..but do I remember some time ago a topic relating to using VIsual Basic to identify who is logged onto a domain..
Is this possible...
Any suggestiojns?
Thanks
Shut NT When No One's Logged On
Hi
I’m running a program to shut a NT Server (using the ‘at’ command)
It works if admin is logged on, But if there r no users logged on, the program gets executed…
but the shutting part doesn’t work…
(I already tried making the program a ‘Service’)
Any one has any idea how to persuade NT to acknowledge my request ??
Thanks
Ram
Checking How Is Logged In
how i can detect how is loged in on a windows 95/98 station...
for example i logon with my username hpimentel on my machine, and my boss logon with wreinoso, i what to now how i can detect how is loged in...
thanks...
API For Locked/logged In/etc..??
I posted this in the API forum...but it seems like there may be a better response if I post this here
Does anyone know if there is an API call that will determine if an NT or Win2K workstation is locked, in use (i.e. a user is logged in) or not in use (i.e. turned on, but nobody logged in)?
If such an api call exists, could you post the entire declare statement?!!? ...as well as any constants that I'd need
Thanks a million!!!
~Acoustic
|