Solved

find connected clients on Domain controller

Posted on 2016-08-10
3
24 Views
1 Endorsement
Last Modified: 2016-09-10
I have 2 Domain controllers in site how would i know or check which client is connected to DC1 and which one to DC2,

Note: we can do it from client to find out what is the current DC but how should we know to find a list of clients from server.

Regards
1
Comment
Question by:Abdul Wahid
3 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
Comment Utility
check the logon events on each servers security event log.
Or from now on use the following LOGON/LOGOFF scripts
Name: Log On.bat
rem The following line creates a rolling log file of usage by workstation
echo Log In %Date% %TIME% %USERNAME% %LOGONSERVER%>> \\servername\Logs\Computer\%COMPUTERNAME%.log

rem The following line creates a rolling log file of usage by user
echo Log In %Date% %TIME% %COMPUTERNAME% %LOGONSERVER%>> \\servername\Logs\User\%USERNAME%.log
echo Log In %Date% %TIME% %COMPUTERNAME% >> \\servername\Logs\User\%LOGONSERVER%.log

Open in new window

Name: Log Off.bat

rem The following line creates a rolling log file of usage by workstation
echo Log Off %Date% %TIME% %USERNAME% %LOGONSERVER%>> \\servername\Logs\Computer\%COMPUTERNAME%.log
echo Log Off %Date% %TIME% %USERNAME%>> \\servername\Logs\Computer\%LOGONSERVER%.log

rem The following line creates a rolling log file of usage by user
echo Log Off %Date% %TIME% %COMPUTERNAME% %LOGONSERVER%>> \\servername\Logs\User\%USERNAME%.log

Open in new window

Create a share LOGS and edit the batch files to reflect the correct server name and log location
Put these files in the Logs folder.


In Group Policy
You do this on your User Container GPO.
User Configuration > Windows Settings > Scripts
Add Log In.bat to the Logon scripts box and Log Off.bat to the Logoff scripts box
modified from https://community.spiceworks.com/how_to/82-monitor-user-log-in-and-log-off-without-software
1
 
LVL 7

Expert Comment

by:Senior IT System Engineer
Comment Utility
David,

Does the script always gets executed when the user is already logged in ?

Or if the PC is locked and the. Unlocked ?
0
 
LVL 34

Expert Comment

by:Seth Simmons
Comment Utility
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: David Johnson CD MVP (https:#a41750460)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer
0

Featured Post

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now