Thursday, 7 August 2014
Users logging on or off into their domain computers is a very routine activity that occurs in any enterprise. However, just like any other activity this might look a simple Active Directory event but administrators could very well make use of this valuable data for different audit, compliance and operational needs. There are occasions when an organization looks out for audit details on User Logons and Logoffs for various operational requirements such as:
Automated and complete tracking user activity is never an easy job, but at the same time it is very important. In fact, these days the propagation of compliance regulations and the heightening security apprehensions are forcing many organizations to track every single AD user logon and logoff activity. But, the key question is how can you track user logon information? The answer to this question lies on the successful implementation of user logon logoff scripts in Group Policy.
The steps you need to follow to track AD user logon and logoff activity has been explained below:
Set up a Share on the network
Create the batch files
Add the batch files to group policy
Now, the next step you require to follow is make run those .bat files every time users logon and logoff. To achieve this, the steps you require to follow are mentioned below:
Finally, once you follow all the steps mentioned above, you will get a log file detailing when and where each user Logs On and Logs Off.
Limitations
However, performing a track operation through a native active directory manual method has got its own limitations. Every logon detail is constantly logged in the security logs of the Active Directory Domain Controllers (DCs). Now, at times this data logged in the native Active Directory Domain Controllers
Summary
These days the propagation of compliance regulations and the heightening security apprehensions are forcing many organizations to track every single AD user logon and logoff activity. But, the key question is how can you track user logon information? The answer to this question lies on the successful implementation of user logon logoff scripts in Group Policy.
- Find out users who accessed or made an attempt to access Workstations or Domain controllers through a remote network computer.
- Determine peak login times for specific user in the domain.
Automated and complete tracking user activity is never an easy job, but at the same time it is very important. In fact, these days the propagation of compliance regulations and the heightening security apprehensions are forcing many organizations to track every single AD user logon and logoff activity. But, the key question is how can you track user logon information? The answer to this question lies on the successful implementation of user logon logoff scripts in Group Policy.
The steps you need to follow to track AD user logon and logoff activity has been explained below:
Set up a Share on the network
First of all, create and
share a folder with full access permissions for everyone, as well as
full NTFS permissions for users which you want to log.
It is always suggested to make a hidden share \\server\share$\.
To make you understand, we are making use of two different folders in shared location, one for computers \\server\share$\Computers\ and another for users \\server\share$\Users\.
To make you understand, we are making use of two different folders in shared location, one for computers \\server\share$\Computers\ and another for users \\server\share$\Users\.
Create the batch files
- Create logon.bat with the contents below and put it in the \\server\share$\logon.bat. To achieve this task, run the following commands:
- Create logoff.bat along with the contents shown below and put it in the \\server\share$\logoff.bat
echo %username% logged off %date% - %time% >>\\server\share$\Computers\%computername%.txtecho %computername% logged off %date% - %time% >>\\server\share$\Users\%username%.txt
ver >>\\server\share$\Computers\%computername%.txt
This command returns OS version and writes it to computer_name.txt on your share.
echo %username% logged on %date% - %time% >>\\server\share$\Computers\%computername%.txt
This command writes username of logged on user provided with the date when the script was run and writes it to computer_name.txt on your share.
ipconfig /all |findstr Address >>\\server\share$\Computers\%computername%.txt \\server\share$\Users\%username%.txt
This command returns IP and Mac addresses of network connections and finally writes them to computer_name.txt on your share.
echo %computername% logged on %date% - %time% >>\\server\share$\Users\%username%.txt
ipconfig /all |findstr Address >>\\server\share$\Users\%username%.txt
These commands write almost entire info into user_name.txt files \\server\share$\users.
Add the batch files to group policy
Now, the next step you require to follow is make run those .bat files every time users logon and logoff. To achieve this, the steps you require to follow are mentioned below:
- Open Group Policy Management, Create and Link GPO to the OU where targeted users exist in.
- Now right click on that GPO and select Edit.
- Navigate to User Configuration\Windows Settings\Scripts Logon/Logoff double click on Logon and click on Add.
- Browse for logon.bat (\\server\share$\logon.bat) and click OK.
Finally, once you follow all the steps mentioned above, you will get a log file detailing when and where each user Logs On and Logs Off.
Limitations
However, performing a track operation through a native active directory manual method has got its own limitations. Every logon detail is constantly logged in the security logs of the Active Directory Domain Controllers (DCs). Now, at times this data logged in the native Active Directory Domain Controllers
- Necessitates expertise to understand as it gets difficult to understand definite event numbers and their relationship to a logon action.
- Gets huge in volume. Every logon activity on / by any Active Directory object is constantly logged in the Domain Controller and after certain time this event log data piles up to a huge volume.
Summary
These days the propagation of compliance regulations and the heightening security apprehensions are forcing many organizations to track every single AD user logon and logoff activity. But, the key question is how can you track user logon information? The answer to this question lies on the successful implementation of user logon logoff scripts in Group Policy.
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
The importance of auditing the Active Directory can be proved with a single fact that doing this will help to maintain th...
-
Active Directory (AD) delegation is certainly one of the most critical aspects of any organizations' IT infrastructure. By delegating ...
-
Are you sleep deprived because of your Active Directory? If yes, then you can easily understand the reason behind it. Active Directory is...
-
All objects in Active Directory (e.g., users, groups, OUs and group policy objects) are structured as per the AD’s schema of object classe...
-
Users logging on or off into their domain computers is a very routine activity that occurs in any enterprise. However, just like any other ...
0 comments:
Post a Comment