Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

Notices

Windows

Windows forum sponsored by

For all of your Windows problems

Go Back   EduGeek.net Forums > Technical > Windows
Reply
 
LinkBack Thread Tools Search Thread Language
Sponsored Links
Old 13-08-2008, 09:22 PM   #1
 
Nick_Parker's Avatar
 
Join Date: Jan 2008
Location: Dainfern, South Africa
Posts: 112
Thanks: 28
Thanked 4 Times in 2 Posts
Rep Power: 2 Nick_Parker is on a distinguished road
Default Restrict Concurrent Logons using Domain Sessions?

Hi All,

I've been looking around at solutions to restricting users to only one logon, I've looked at cconnect (which I'm still trying to track down - need Server 2000 tools or something) and the other option is a fairly expensive UserLock software.

Other people have come up with clever ways of doing it using logon scripts to write to text files, or create folders or write to an SQL DB, but...

If you goto the domain controller, and right click 'My Computer', go to Manage, then under 'Shared Folders' you go to 'Sessions'.

I would assume that's a fairly accurate way of determining who is logged on where? (Please feel free to comment on just how accurate this is?)

Next question, is it possible to query the 'Sessions' from a vbscript startup script?

Any suggestions would be greatly recommended?
  Reply With Quote
Old 13-08-2008, 09:36 PM   #2
 
Michael's Avatar
 
Join Date: Dec 2005
Location: Birmingham
Posts: 2,181
uk uk england
Thanks: 28
Thanked 167 Times in 135 Posts
Rep Power: 40 Michael is a splendid one to beholdMichael is a splendid one to beholdMichael is a splendid one to beholdMichael is a splendid one to beholdMichael is a splendid one to beholdMichael is a splendid one to beholdMichael is a splendid one to behold
Default

I use Userlock at one site (but as you say, it's expensive). Microsoft have release a free utility called LimitLogon, however I never got it to work properly and I don't seem to be the only one!
  Reply With Quote
Old 13-08-2008, 10:05 PM   #3
 
kesomir's Avatar
 
Join Date: Mar 2008
Location: London
Posts: 180
uk uk city of london
Thanks: 9
Thanked 12 Times in 11 Posts
Rep Power: 4 kesomir will become famous soon enough
Default

This is one feature of ranger / impero etc that could really do with replicating on vanilla.
  Reply With Quote
Old 13-08-2008, 10:10 PM   #4
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 4,927
uk
Thanks: 157
Thanked 162 Times in 156 Posts
Rep Power: 38 FN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to behold
Send a message via Skype™ to FN-GM
Default

We use a logon script that makes a .txt file on a server. When the user tries to logon again it logs them off right away. Simple but effective.
  Reply With Quote
Old 13-08-2008, 10:31 PM   #5
 
DMcCoy's Avatar
 
Join Date: Oct 2005
Location: Isle of Wight
Posts: 1,921
uk uk isle of wight
Thanks: 2
Thanked 116 Times in 106 Posts
Rep Power: 31 DMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to all
Default

limitlogon here

Sometimes sessions can get left behind, although the same applies to limitlogon too if a machine crashes.
  Reply With Quote
Old 14-08-2008, 07:08 AM   #6
 
Gatt's Avatar
 
Join Date: Jan 2006
Location: Moorside High, Swinton / Middleton, Rochdale
Posts: 2,156
uk uk scotland
Thanks: 82
Thanked 38 Times in 28 Posts
Rep Power: 19 Gatt is a jewel in the roughGatt is a jewel in the roughGatt is a jewel in the rough
Send a message via MSN to Gatt
Default

Using Userlock here too - though not tried it on Windows 2008 & Vista yet!!
  Reply With Quote
Old 14-08-2008, 09:14 AM   #7
 
Nick_Parker's Avatar
 
Join Date: Jan 2008
Location: Dainfern, South Africa
Posts: 112
Thanks: 28
Thanked 4 Times in 2 Posts
Rep Power: 2 Nick_Parker is on a distinguished road
Default

Ta for your suggestions guys,

I've been a bit sceptical of LimitLogon after Google'ing it and seeing pages of "problems installing" and we are about to move our DC/AD to Server 2008, does LimitLogon work on 2008?

None of you have tried the 'Sessions' route? I'm asking because I have no idea how to go about it myself
  Reply With Quote
Old 14-08-2008, 10:32 AM   #8
 
amfony's Avatar
 
Join Date: Jul 2007
Location: Sydney
Posts: 77
australia au new south wales
Thanks: 8
Thanked 6 Times in 6 Posts
Rep Power: 4 amfony is on a distinguished road
Send a message via MSN to amfony
Default

im not to sure about the legitimacy of the session model sorry dude, isnt a session (im thinking, no real data to confirm this) only applicable as long as there is a file being accessed on that server. So on the DC (which one? another potential problem in session model) unless i file is accessed i would assume the session would dissapear.

I could be very wrong though and id like to hear the result of someone knows otherwise.

What i do - do is use is what you correctly said already. A MySql DB to write on logon and clear flag on logoff. Across about ...500 - 600 student logons a day we only get about 2 or 3 students whom have computer crashing/mate pulled the power plug/other non-graceful logoff which i think is pretty fair.

Besides the txt file writing, database manpulation methods i dont really think there are other methods of achieving this? Thinking way, way, way out of the box (as i do) you could enable auditing and run scripts against eventLog??

Possible .. and improbable.

What aspect of the txt writing, db manipulation is not sufficient for you needs anyway mate?
  Reply With Quote
Old 14-08-2008, 02:50 PM   #9
FAA
 
FAA's Avatar
 
Join Date: Aug 2008
Posts: 11
france
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 FAA is an unknown quantity at this point
Cool Just to reassure Gatt about UserLock...

Yes UserLock is Windows Server 2008 and Vista compatible.
  Reply With Quote
Old 14-08-2008, 02:58 PM   #10
 
cookie_monster's Avatar
 
Join Date: May 2007
Location: Derbyshire
Posts: 1,656
uk uk england
Thanks: 30
Thanked 56 Times in 49 Posts
Rep Power: 17 cookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the rough
Default

How expensive is UserLock?
  Reply With Quote
Old 14-08-2008, 03:01 PM   #11
FAA
 
FAA's Avatar
 
Join Date: Aug 2008
Posts: 11
france
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 FAA is an unknown quantity at this point
Default UserLock pricing

UserLock pricing

Academic institutions get a 20% educational discount off this pricelist.
  Reply With Quote
Old 15-08-2008, 05:46 PM   #12
 
Nick_Parker's Avatar
 
Join Date: Jan 2008
Location: Dainfern, South Africa
Posts: 112
Thanks: 28
Thanked 4 Times in 2 Posts
Rep Power: 2 Nick_Parker is on a distinguished road
Default

Quote:
Originally Posted by amfony View Post
im not to sure about the legitimacy of the session model sorry dude, isnt a session (im thinking, no real data to confirm this) only applicable as long as there is a file being accessed on that server. So on the DC (which one? another potential problem in session model) unless i file is accessed i would assume the session would dissapear.

I could be very wrong though and id like to hear the result of someone knows otherwise.

What i do - do is use is what you correctly said already. A MySql DB to write on logon and clear flag on logoff. Across about ...500 - 600 student logons a day we only get about 2 or 3 students whom have computer crashing/mate pulled the power plug/other non-graceful logoff which i think is pretty fair.

Besides the txt file writing, database manpulation methods i dont really think there are other methods of achieving this? Thinking way, way, way out of the box (as i do) you could enable auditing and run scripts against eventLog??

Possible .. and improbable.

What aspect of the txt writing, db manipulation is not sufficient for you needs anyway mate?
You may be right about the sessions method, will have to look into it a little more, but I'm beginning to lean towards the MySQL method, do you read/write to the MySQL DB from the logon/logoff script?
  Reply With Quote
Old 17-08-2008, 09:39 AM   #13
 
Nick_Parker's Avatar
 
Join Date: Jan 2008
Location: Dainfern, South Africa
Posts: 112
Thanks: 28
Thanked 4 Times in 2 Posts
Rep Power: 2 Nick_Parker is on a distinguished road
Default

LAME!

I spent most of yesterday writing a console application in C# to handle the talking to a DB, you pass it the parameters such as username, IP address, computer name.

It then looks up from a mysql db all the current sessions for that username, adds a new one if appropriate, logs off if necessary etc.

First problem: Can't run the EXE from the netlogon folder... all sorts of permission errors blah blah...

So for testing, the logon script now copies the exe to the local machine then runs it.
that seems to work fine, but still not ideal.

second problem: The logoff script doesn't seem to run the exe... when you log off, the desktop dissapears and you get that little status thingy, "windows is logging you off", "closing network connections..." etc... that stuff, then it does the "running log off scripts"
and I think at that point its not capable of running an .exe and doing the whole mysql bit.


Any suggestions?
  Reply With Quote
Old 17-08-2008, 10:24 AM   #14
 
Nick_Parker's Avatar
 
Join Date: Jan 2008
Location: Dainfern, South Africa
Posts: 112
Thanks: 28
Thanked 4 Times in 2 Posts
Rep Power: 2 Nick_Parker is on a distinguished road
Default

Correction: It does run now when you log off, turns out I had a mistake in my logoff script... *oops*

Still, any suggestions as to how to get the exe to run from a network drive?
  Reply With Quote
Old 17-08-2008, 10:44 AM   #15
 
SYNACK's Avatar
 
Join Date: Oct 2007
Location: Auckland, New Zealand
Posts: 1,722
newzealand
Thanks: 59
Thanked 253 Times in 230 Posts
Blog Entries: 2
Rep Power: 55 SYNACK has much to be proud ofSYNACK has much to be proud ofSYNACK has much to be proud ofSYNACK has much to be proud ofSYNACK has much to be proud ofSYNACK has much to be proud ofSYNACK has much to be proud ofSYNACK has much to be proud ofSYNACK has much to be proud ofSYNACK has much to be proud of
Send a message via MSN to SYNACK
Default

I have not had issues with running exe files from the nelogon share but stuff like the old winnt printer connector exe.

You are probably having problems because your app is built in C# and relys on the .net framework which has a whole bunch of security settings that prevent running a .net application from a network share. You would need to change the .net runtime security settings on all of your client machines.

You can use VBS scripts to access databases directly and perform the kinds of operations that you are after which may be easier that a full scale war with the .net framework.
  Reply With Quote
Reply

Register now for FREE and post messages!


Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Image Verification
  I agree to forum rules 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Concurrent logons mrforgetful Networks 7 28-02-2008 06:33 PM
Maximum concurrent connections in XP Pro? Ben_Stanton Windows 5 30-08-2007 09:56 AM
Concurrent user logins on 2k3 domain doco Windows 4 26-06-2007 11:33 AM
Tool to restrict concurrent application usage meastaugh1 Network and Classroom Management 9 29-01-2007 10:23 AM
Wide Area Networks & Domain Logons RobC Networks 4 16-12-2005 01:40 PM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 08:33 PM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright EduGeek.net