+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
Windows Thread, Client PC Stats in Technical; Hey all, Happy new year and all.... Here's one to get your heads around, I am thinking of doing some ...
  1. #1
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62

    Client PC Stats

    Hey all,

    Happy new year and all....

    Here's one to get your heads around, I am thinking of doing some reports in the new year to show PC utilisation.

    I want to show the amount of time PCS are used to the amount of time they site idle.

    I want to try and work out if we really need to purchase more PC's or is it just a case that we need to better use the ones we already have.

    So !, has anyone already done something like this or do you have ANY ideas........

  2. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Client PC Stats

    This was mentioned recently IIRC... there are gubbins to do this for you but the easiest/quickest/dirtiest way is to write to a log file on a server when a user logs on and off. You can then import this into a spreadsheet to produce your report.

  3. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,811
    Thank Post
    3,327
    Thanked 1,056 Times in 977 Posts
    Rep Power
    365

    Re: Client PC Stats

    surely event viewer on the server would log all of the log on and offs and at what times and you could just use WMI or something to that extent to do the sifting through the servers logs to establish that info and do any maths in the background with regards to working out how long each user was logged on for and do it that way, maybe im missing something......

    Enabling auditing ??

  4. #4

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Client PC Stats

    @gecko: IIRC, event logs don't record the clientname variable (this is particularly important in a thin client environment).

  5. #5

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: Client PC Stats

    You could probably do it with these (thanks Carl):

    http://www.microsoft.com/technet/sys...s/pstools.mspx

    I am reliably informed that using psloggedon will let you generate a script that reads logon information, then putting that out to text file on the server would let you use another script to read that text file and use the data in an excel graph. Can't help you with this, I don't profess any scripting skills at all.

    There is also this:

    http://www.serversalive.com/salive/index.asp

    But the latter costs money- unless you don't need it for more than 10 machines (IIRC).

    Paul

  6. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,811
    Thank Post
    3,327
    Thanked 1,056 Times in 977 Posts
    Rep Power
    365

    Re: Client PC Stats

    There was a thread on EE about finding which user is logged onto which machine :

    http://www.experts-exchange.com/Misc...html#a18195343

    Well, I can't think of any 'easy' way to do this, unfortunately (we name our systems with the user's name to avoid this confusion).
    Anyway, given that you have a list of 'all' workstations, the following could work, but I can't really say how long it will take...

    Get psloggedon from http://www.microsoft.com/technet/sys...sloggedon.mspx
    if you don't have it already...

    Then, comprise a list of all workstations (if you don't have one, we can use a script to generate the list).

    Let's say the list of PCs is c:\PC-Names.txt

    Run the following against it:

    for /f %a in C:\PC-Names.txt do for /f "tokens=4" %x in ('psloggedon /l \\%a^|find /i "sirbounty"') do echo %x

    Just thought it may give you a starting point

  7. #7
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,966
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: Client PC Stats

    I'm intrested in this too Ozan. Although we find that it's more a timetabling problem than a resource problem - periods where IT Equipment is available fall at the same time every week, some classes will always have opportunity to book it, whilst others never do. We've tried half suites (of 15 PCs in each) and a completely curriculum use ICT Suite. The latter worked but manglement scrapped it and decreed the mini suite rule.

    So, a script would be good!

  8. #8

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Client PC Stats

    In my login script is the following line...
    Code:
    echo %date%,%time%,LOGON,%username%,%computername%,%clientname%,%logonserver%  >> \\svr1\logs\track_logon.log
    If you then have the following as a logoff script...
    Code:
    echo %date%,%time%,LOGOFF,%username%,%computername%,%clientname%,%logonserver%  >> \\svr1\logs\track_logon.log
    You should be able to import the resultant CSV file into your favourite spreadshseet for manipulation.

  9. #9

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: Client PC Stats

    That works for me Ric- cool!

  10. #10

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Client PC Stats

    Quote Originally Posted by kingswood
    That works for me Ric- cool!
    You doubted my wisdom?

  11. #11

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: Client PC Stats

    Not at all :-)

  12. #12
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,966
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: Client PC Stats

    I have the "Since when does logging off involve pressing the reset button!?!" epedemic at the moment Ric_ Tho just the startup script would be useful too.

  13. #13

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Client PC Stats

    Quote Originally Posted by mark
    I have the "Since when does logging off involve pressing the reset button!?!" epedemic at the moment Ric_ Tho just the startup script would be useful too.
    The scripts would also allow you to show that people aren't logging off correctly.

  14. #14

    Join Date
    Jan 2006
    Posts
    143
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Client PC Stats

    Quote Originally Posted by Ric_
    In my login script is the following line...
    Code:
    echo %date%,%time%,LOGON,%username%,%computername%,%clientname%,%logonserver%  >> \\svr1\logs\track_logon.log
    If you then have the following as a logoff script...
    Code:
    echo %date%,%time%,LOGOFF,%username%,%computername%,%clientname%,%logonserver%  >> \\svr1\logs\track_logon.log
    You should be able to import the resultant CSV file into your favourite spreadshseet for manipulation.
    This is very similar to our approach. Jolly useful it is, too

  15. #15

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Client PC Stats

    @acb_: I did rob the concept off of another post on EduGeek... I have added a couple of variables (in particular %clientname%) to make the output more relevant to a thin client environment.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 11th July 2007, 03:32 PM
  2. Stats
    By localzuk in forum Comments and Suggestions
    Replies: 7
    Last Post: 15th April 2007, 01:25 PM
  3. MS RDP Client V6 available
    By Norphy in forum Windows
    Replies: 2
    Last Post: 29th November 2006, 10:21 AM
  4. web server stats
    By CyberNerd in forum How do you do....it?
    Replies: 9
    Last Post: 22nd September 2006, 08:57 AM

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
  •