How to prevent simultaneous login with same user on Active Directory?
Thank to: https://abhishek.nagar.me/ Restrict Multiple Logins in Domain (AD) I have always asked this question to my colleagues as to " How do i restrict Multiple Logins in an Active Directory Setup " So here is the answer Create a file when a user login and check for such file each time the login request is received if file exists logoff, if file is not present Login and create the file. Its that simple Below is the step by step process to achieve this using Group Policy Assumptions: Windows 2003 AD is being used //<server>/logon is shared and write access is given to everyone The Steps Step 1) Create 2 batch files in C:\WINDOWS\SYSVOL\sysvol\domain.name\scripts\logon File 1: login.bat :: BEGIN CALLOUT A If Exist \\server\logons\%username%.txt Goto notlogon Echo %username% logged in from %computername% > \\server\logons\%username%.txt Echo %username% logged in from %computername% > \\server\logons\%computername%.txt :: END CALLOUT A Goto end :notlogon Logoff :