+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
How do you do....it? Thread, PC's left on overnight / weekend in Technical; just written a little vbs to parse the dhcp logfile for renews after 8pm (i run a short lease) It ...
  1. #1
    ChrisP's Avatar
    Join Date
    Apr 2007
    Location
    norfolk
    Posts
    150
    Thank Post
    4
    Thanked 8 Times in 8 Posts
    Rep Power
    17

    PC's left on overnight / weekend

    just written a little vbs to parse the dhcp logfile for renews after 8pm (i run a short lease)

    It works very well but am i going about it in the wrong way...

    how do you do it?

  2. #2

    Join Date
    Oct 2007
    Location
    Ealing, London
    Posts
    26
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    15

    Re: PC's left on overnight / weekend

    We use Nightwatchman http://www.1e.com/softwareproducts/n...man/index.aspx

    which works well if you are running a standard Windows AD network.

  3. #3

    Join Date
    Nov 2006
    Location
    Reading, UK
    Posts
    487
    Thank Post
    30
    Thanked 14 Times in 8 Posts
    Rep Power
    18

    Re: PC's left on overnight / weekend

    Anybody know of any free alternatives? We all know how tight our budgets are!!

  4. #4
    ChrisP's Avatar
    Join Date
    Apr 2007
    Location
    norfolk
    Posts
    150
    Thank Post
    4
    Thanked 8 Times in 8 Posts
    Rep Power
    17

    Re: PC's left on overnight / weekend

    Quote Originally Posted by ictstbenedicts
    We use Nightwatchman http://www.1e.com/softwareproducts/n...man/index.aspx

    which works well if you are running a standard Windows AD network.
    I thought i would parse the DHCP logfile because that seemed like a good way of not having to tie into AD (we have 3 domains) and people bring in their own laptops etc.

    Also did'nt go down the route of ping sweeps incase the device (because it may not even be a computer) may not reply to echo requests.

  5. #5

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,412
    Thank Post
    642
    Thanked 963 Times in 663 Posts
    Blog Entries
    2
    Rep Power
    326

    Re: PC's left on overnight / weekend

    Deja vu... search the forum for remote shutdown/psshutdown..

    The Netsh command can be scheduled to export the DHCP list.

  6. #6
    ChrisP's Avatar
    Join Date
    Apr 2007
    Location
    norfolk
    Posts
    150
    Thank Post
    4
    Thanked 8 Times in 8 Posts
    Rep Power
    17

    Re: PC's left on overnight / weekend

    Quote Originally Posted by webman
    Deja vu... search the forum for remote shutdown/psshutdown..
    my aim was not to shutdown the pc's but to identify the serial offenders and stick my foot up their arse

    I could have just batched a psshutdown for the portion of my subnet outside the fixed ip range but being a control freak i like the idea of knowing whats going on.

    Quote Originally Posted by webman
    The Netsh command can be scheduled to export the DHCP list.
    the script parses it at source, no exporting

  7. #7

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,412
    Thank Post
    642
    Thanked 963 Times in 663 Posts
    Blog Entries
    2
    Rep Power
    326

    Re: PC's left on overnight / weekend

    Oh right, sorry... I misunderstood your original post. I can't think of another way to do this as we have ours shut down and automatically woken up - we urge people not to turn them off as we may need to do maintenance between after-school and shutdown time.

  8. #8
    ChrisP's Avatar
    Join Date
    Apr 2007
    Location
    norfolk
    Posts
    150
    Thank Post
    4
    Thanked 8 Times in 8 Posts
    Rep Power
    17

    Re: PC's left on overnight / weekend

    :hiding: Thanks !!
    gr8 input, did'nt mean to sound negative if it came across as such.

  9. #9

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,412
    Thank Post
    642
    Thanked 963 Times in 663 Posts
    Blog Entries
    2
    Rep Power
    326

    Re: PC's left on overnight / weekend

    No no.. not at all It's been a heavy day :cry:

  10. #10
    secman's Avatar
    Join Date
    Nov 2005
    Location
    Romford, Essex
    Posts
    107
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    19

    Re: PC's left on overnight / weekend

    I have used the Sysinternals psshutdown program (free) and a series of batch files (never got around to sorting scripts) and a scheduler program.

    We do have a couple of machines that need to be on or staff who work late so I can't have a blanket shutdown.

  11. #11
    StewartKnight's Avatar
    Join Date
    Jun 2005
    Posts
    1,587
    Thank Post
    2
    Thanked 27 Times in 21 Posts
    Rep Power
    30

    Re: PC's left on overnight / weekend

    I don't know if this is what you're looking for, but I have a script, that you set to run at a given time. This checks which computers are still switched on.

    It then emails me the details of any that have infringed my script.

  12. #12
    Silverman's Avatar
    Join Date
    Oct 2007
    Location
    Worksop, Nottinghamshire
    Posts
    50
    Thank Post
    15
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: PC's left on overnight / weekend

    Is there any chance you could post this script stewart as it sounds like quite a handy script to have.
    Thanks.

  13. #13
    projector1's Avatar
    Join Date
    Nov 2005
    Posts
    461
    Thank Post
    70
    Thanked 1 Time in 1 Post
    Rep Power
    19

    Re: PC's left on overnight / weekend

    lanview anybody?
    we use this to shutdown any pc that is left switched on.
    we also use this to monitor pc usage in terms of what pupils are doing whilst logged on.
    Another benefit is remote support! we can assist staff where ever they are on site. I have just helped a member of the office staff troubleshoot and application error message. Our new office is thehighest point in the school so you can imagine the time we save visiting staff situated across the other side of the school!

  14. #14
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    22

    Re: PC's left on overnight / weekend

    we use lanview too, i have set all computers to shutdown but this will only shutdown the ones that are not logged on, then later on in the night i have a forced shutdown set which will shutdown even a logged on machine.
    we told the staff that if they dont shutdown they could loose there work.
    The machines are woke every morning before i come in, plus they have a uptime so i can see how long each machines has been on.
    I once found a machine had been on for 21 days.

  15. #15
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,527
    Thank Post
    107
    Thanked 89 Times in 75 Posts
    Blog Entries
    46
    Rep Power
    40

    Re: PC's left on overnight / weekend

    ive got a couple of scripts that runs as scheduled tasks that uses down from LS Tools Freeware
    at 4pm

    Code:
    del loggedin.txt
    for /f %%a in ('type comp.log') do (
      	for /f  %%b in ('net view ^| find "\\%%a" /I ') do (
    		if exist %%b\c$ (
    			pslist %%b | find "explorer" /I && echo %%b >> loggedin.txt
    			if errorlevel 1 down %%b /P /Q)))
    run and shutsdown any machine not logged on. comp.log is a list of computername prefixes we use

    at 6pm

    Code:
    for /f %%a in ('type loggedin.txt') do (
    	down %%a /P /F /Q )
    blat loggedin.txt -to andy@domain -server exchange -f academic\administrator -q -s "forced these computers to shutdown at 6pm"
    runs and forces any machines that were previously logged on off and emails me the list

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

Similar Threads

  1. Replies: 2
    Last Post: 10th September 2007, 08:36 AM
  2. This weekend i Will Be... at Leamington Spa
    By russdev in forum General Chat
    Replies: 10
    Last Post: 7th October 2006, 09:39 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
  •