Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Logged on stats from active directory

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 15:53 - 11 Oct 2010    Post subject: Logged on stats from active directory Reply with quote

i need to find something out and i'm a little stuck as to where to start.

the end product will be a plasma screen that displays something like the following info

PCs on Level 1 : 10 of 30 in use
PCs on Level 2 : 2 of 66 in use

and so on.

So our place has an Active Directory, which in turn as computers organised into "Levels"

All i want to know is how many PCs are in each levels (suppose this could be hard coded by me counting them but thats not ideal when the manager just removes stuff or adds stuff) and if they are logged on.

I've tried googling and get various suggestions but it seems to go too far, all i need is x of y.

Can anyone here help?
 Back to top
View user's profile Send private message You must be logged in to rate posts

chrisw
World Chat Champion



Joined: 24 Apr 2006
Karma :

PostPosted: 18:30 - 11 Oct 2010    Post subject: Reply with quote

Do you want switched on or logged in?

If it's just switched on then it would be quite simple to have a VBS pull out the names from AD then run through and ping them or perform a simple WMI query if ICMP is blocked.

If you want logged on then that would require a little more work be easily do-able.
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

panrider_uk
World Chat Champion



Joined: 23 Sep 2007
Karma :

PostPosted: 18:40 - 11 Oct 2010    Post subject: Reply with quote

If switched on numbers required then a simple script that just polls them all with a ping would suffice.

As part of our login script I log all logins/logouts to a file for each pc (filename is the same as the pc name) with date, username, ip address and various other bits of useful info. I also write to a file where the filename is the username stating date and time. This lets us get useful info quite easily about who's logging into which machine and when. You'd just need a simple script to scan these files to collect the real-time info.

Mark
____________________
Current bikes: Honda ST1100 Pan European. Moto Guzzi V85 TT Travel
 Back to top
View user's profile Send private message You must be logged in to rate posts

t121anf
World Chat Champion



Joined: 23 Feb 2007
Karma :

PostPosted: 21:20 - 11 Oct 2010    Post subject: Reply with quote

logged in, it's to help students find unused pc's.

ideally looking for a solution that requires nothing putting onto the pcs as i have no control over them
 Back to top
View user's profile Send private message You must be logged in to rate posts

panrider_uk
World Chat Champion



Joined: 23 Sep 2007
Karma :

PostPosted: 21:43 - 11 Oct 2010    Post subject: Reply with quote

With a small amount of work This could easily be modified to read AD instead of a text file of computers and output the results you want.

Mark
____________________
Current bikes: Honda ST1100 Pan European. Moto Guzzi V85 TT Travel
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 15 years, 328 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.05 Sec - Server Load: 0.44 - MySQL Queries: 13 - Page Size: 43.6 Kb