Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

find connected clients on Domain controller

Posted on 2016-08-10
3
Medium Priority
?
76 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 84

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 total points
ID: 41750460
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 8

Expert Comment

by:Senior IT System Engineer
ID: 41752229
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 36

Expert Comment

by:Seth Simmons
ID: 41792461
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

972 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