+ Post New Thread
Results 1 to 9 of 9
Scripts Thread, Limiting Logons by detecting dupe users in AD in Coding and Web Development; I used to limit the student logons by restricint their home share to one user, and then testing if their ...
  1. #1

    Join Date
    Aug 2009
    Location
    Brisbane
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Limiting Logons by detecting dupe users in AD

    I used to limit the student logons by restricint their home share to one user, and then testing if their home share mapped.

    BUT this meant we had to share each home folder.

    how about a script that ran (constantly or every minute) to look at AD to see if there is any duplicate user accounts with an active session?

    do you think this would be easy (this is why i am asking the experts).

    cheers

    kent.

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    I used to have one put lost the bugger. All you need to do is make a logon script that creates a .txt file in a shared area. If one exists boot the user off because the script has been run before.

    If you add a log off script to delete the text file you will be good to go.

    We ditched this though as it was a pain when kids hit the reset button. We purchased UserLock. It is easy to setup a deploy and can do much more than limiting logon sessions. Have a look on the website for mor details

  3. #3

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    Active Directory itself has no concept of user sessions, only single authentications.

  4. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    If you want a free solution, have a search for "Limit Logon" or alternatively pay for Userlock.

  5. #5
    ckuntz01's Avatar
    Join Date
    Nov 2009
    Posts
    18
    Thank Post
    1
    Thanked 5 Times in 5 Posts
    Rep Power
    11
    We wrote our own scrip this year that uses a SQL Database to track the user sessions and WMI to log them off when it has exceeded the limit. We used to use Limit Logon, but had many issues with the upkeep of it.

  6. #6

    Join Date
    Nov 2009
    Location
    Connecticut
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Limit Logon

    Set up a Group Policy Object, apply it to the students and set login limits there. This will be an automatic solution. You already stated that it was in Active Directory. Might as well use the free tools that are available and minimize your headaches if possible.

  7. #7
    ckuntz01's Avatar
    Join Date
    Nov 2009
    Posts
    18
    Thank Post
    1
    Thanked 5 Times in 5 Posts
    Rep Power
    11
    Quote Originally Posted by n1wgk View Post
    Set up a Group Policy Object, apply it to the students and set login limits there. This will be an automatic solution. You already stated that it was in Active Directory. Might as well use the free tools that are available and minimize your headaches if possible.
    Where can you set in GPO the number of concurrent logons?

  8. #8

    Join Date
    Nov 2009
    Location
    Connecticut
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    looking sheepish...



    I hadn't set up the AD Group Policy for Limit Login, I only saw the entry in the listing. When you asked me where it's set up, I realized that there's a software deployment happening and there's a VB script running that sets up the client side limit login.

    There's an MSI that gets deployed called LimitLoginClientSetup.msi. There may be something that can be found on line that will better explain what this product does.

    Sorry for any confusion...and I will learn to double check my sources before assuming that my predecessor actually found something useful built into AD without mods.

  9. #9
    cookie_monster's Avatar
    Join Date
    May 2007
    Location
    Derbyshire
    Posts
    4,217
    Thank Post
    394
    Thanked 278 Times in 239 Posts
    Rep Power
    75



SHARE:
+ Post New Thread

Similar Threads

  1. bbc iplayer bandwidth limiting
    By soapyfish in forum *nix
    Replies: 6
    Last Post: 30th March 2009, 02:11 PM
  2. detecting IE7
    By salan in forum Coding
    Replies: 8
    Last Post: 11th March 2009, 12:45 PM
  3. limiting loopbacked policies.
    By browolf in forum Windows
    Replies: 5
    Last Post: 16th October 2008, 10:23 AM
  4. Limiting internet bandwidth?
    By maniac in forum General Chat
    Replies: 15
    Last Post: 2nd May 2008, 01:19 PM
  5. Limiting printing.
    By Chrispy in forum How do you do....it?
    Replies: 21
    Last Post: 9th June 2006, 11:21 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •