+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 34
School ICT Policies Thread, H&S Thing... in School Administration; http://lantricks.com/lanshutdown/ this is fun, also allows forced shoutdown also shutdown /force will terminate any programs and for the computer to ...
  1. #16
    ICT_GUY's Avatar
    Join Date
    Feb 2007
    Location
    Weymouth
    Posts
    2,261
    Thank Post
    646
    Thanked 283 Times in 204 Posts
    Rep Power
    103
    http://lantricks.com/lanshutdown/

    this is fun, also allows forced shoutdown

    also shutdown /force will terminate any programs and for the computer to turn off.

    ' SHUT DOWN AND RESTART IN VB6
    Const EWX_LogOff As Long = 0
    Const EWX_SHUTDOWN = 1
    Const EWX_REBOOT = 2
    Const EWX_FORCE = 4
    Private Declare Function ExitWindows _
    Lib "User32" Alias "ExitWindowsEx" _
    (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long

    Private Sub Command1_Click()

    'Shut down windows
    ExitWindows EWX_SHUTDOWN, &HFFFFFFFF


    End Sub

    Private Sub Command2_Click()


    ExitWindows EWX_REBOOT, &HFFFFFFFF


    End Sub



    force does what it says and will make sure the computer goes off.

  2. #17
    torledo's Avatar
    Join Date
    Oct 2007
    Posts
    2,928
    Thank Post
    168
    Thanked 155 Times in 126 Posts
    Rep Power
    47
    Quote Originally Posted by Geoff View Post
    Leaving computers on is a fire risk. Apparently.
    so am i supposed to switch my servers off overnight aswell ? Or is that an exemption in the wacky world of the H&S mafia....

    having to switch off computers overnight because of fire safty is news to me....i think it's daft if indeed it is the case.

  3. #18

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,372
    Thank Post
    624
    Thanked 949 Times in 651 Posts
    Blog Entries
    2
    Rep Power
    317
    Quote Originally Posted by DMcCoy View Post
    I'd completely forgotten, computers are more liable to spontaneously combust at NIGHT. The daylight shields their EM radiation causing them to become like a giant microwave in the dark! ;-)
    Of course... but during the day there should be personnel on site who are capable of using a fire extinguisher (providing they don't catch fire themselves in the process) or are a phone to dial for the emergency services Thus minimising the spreadability of the fire and the damage it could cause :P

    To completely eliminate the risk of electrical fire when the building is closed, it's best to unplug everything and shut off the main power

  4. #19
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,452
    Thank Post
    278
    Thanked 196 Times in 167 Posts
    Rep Power
    75
    Quote Originally Posted by torledo View Post
    having to switch off computers overnight because of fire safty is news to me....i think it's daft if indeed it is the case.
    Perhaps, but it is good from the points of view of your electricity bill and the penguins.

  5. #20

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    10,039
    Thank Post
    1,680
    Thanked 2,019 Times in 1,493 Posts
    Rep Power
    673
    Quote Originally Posted by Joanne View Post
    Only problem with forced log offs is that there are some admin staff that sometimes stay late doing time tabling... and if we shut down their machines we could be in for it!
    I've done this at our school. The school is unlocked at 7.30am and usually locked up at 7pm. Our late facilities run until 5.30pm. Pupil hours 7am-6pm; Teacher hours 7am-7pm; Office Staff hours 7am-midnight (allows for meetings running late!)

    Our computers are divided into 3 OUs - ICT Suite, Classroom and Admin. Initially, I didn't use the GP on the Admin machines, but I do now. It doesn't seem to cause a problem. It also gives me a timeslot when I can be certain nobody will be logged on.
    Last edited by elsiegee40; 5th February 2008 at 04:45 PM.

  6. #21
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,452
    Thank Post
    278
    Thanked 196 Times in 167 Posts
    Rep Power
    75
    As elsiegee40 says, forced logoffs/shutdowns will only be a problem if you do them at problematic times of day.

    Work out when each computer/location stops being used, and then set scripts to shut those PCs down after that time, or just run one big script round the network once everyone has gone home.

  7. #22
    torledo's Avatar
    Join Date
    Oct 2007
    Posts
    2,928
    Thank Post
    168
    Thanked 155 Times in 126 Posts
    Rep Power
    47
    Quote Originally Posted by webman View Post

    To completely eliminate the risk of electrical fire when the building is closed, it's best to unplug everything and shut off the main power
    you don't happen to have a script that can do that ? ;-)

    Better still, make it a part of a support teams 'housekeeping' duties....
    if you start at 3:00pm you may be done before the site manager locks the gates at the end of an evening

  8. #23

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,372
    Thank Post
    624
    Thanked 949 Times in 651 Posts
    Blog Entries
    2
    Rep Power
    317
    Quote Originally Posted by torledo View Post
    you don't happen to have a script that can do that ? ;-)
    I'll see if I can dig one out...

  9. #24


    Join Date
    Jul 2007
    Location
    Rural heck
    Posts
    2,662
    Thank Post
    120
    Thanked 434 Times in 353 Posts
    Rep Power
    125
    Gotta love education, in any other industry who ever used the equipment would be responsible for switching it off.

    I use PSSHUTDOWN, works very well.

    We share a DT block with another school, who do turn off their ring mains at night. Probably something to do with the old DT block converting it's self into a smoldering mess.

  10. #25
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,738
    Thank Post
    438
    Thanked 53 Times in 50 Posts
    Rep Power
    29
    Quote Originally Posted by elsiegee40 View Post
    You can set permitted logon hours for users in AD.
    Be careful with this if you're using AD for other stuff like LDAP/SSO this will also prevent folk logging on.
    Last edited by Oops_my_bad; 5th February 2008 at 07:53 PM.

  11. #26
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,738
    Thank Post
    438
    Thanked 53 Times in 50 Posts
    Rep Power
    29
    It's interesting this has been brought up - at our place a notice has gone round asking people to shut their PC's off at night (news to me). But it could be something to do with the electrics in this place having just been condemmned, and the electrical feed into the build being very, very warm to touch!

  12. #27

    Sylv3r's Avatar
    Join Date
    Jul 2005
    Location
    Co. Durham
    Posts
    3,151
    Thank Post
    369
    Thanked 365 Times in 323 Posts
    Rep Power
    145
    Our computers are always shut down on a schedule on a night and do not turn on automatically on a morning - we let the users do that and the school yearly electricity bill is 65k.

    I would hate to see how much it would be if the computers are left longer then the 4:00PM shutdown - although they would use too much up individually over a year 700 computers must pull some power through.

  13. #28
    Joanne's Avatar
    Join Date
    Nov 2007
    Location
    Lancashire
    Posts
    1,122
    Thank Post
    49
    Thanked 53 Times in 50 Posts
    Blog Entries
    17
    Rep Power
    23
    well when I've come in this morning there are 86 machines showing on vncon... just seems to be odd ones dotted about everywhere.

    anyway, I had someone ringing me from capita yesterday asking if i wanted a job... working with SIMs and installing it in schools around blackburn and doing general tekkie things. Not sure what to do.... we have a thing about them!!

  14. #29
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 69 Times in 42 Posts
    Rep Power
    33
    I made separate batch files for shutting down different sets of PCs, but they all take this format:
    Code:
    @for /F "eol=# tokens=1,2 delims=," %%i in (X99.txt) do @ping -n 1 -w 750 %%i |find "TTL=" >nul && @shutdown -s -m \\%%i -t 0 -f -c "shutdown batch (run by %username%)" & @sleep -m 750 & @echo %%i shutting down...
    X99.txt contains a list of your computers in this format:

    Code:
    #FQDNs and mac addresses of X99-01 to X99-03
    #
    X99-01.domain.blah, 0011760d57e9
    X99-02.domain.blah, 0011760d57d6
    X99-03.domain.blah, 0011206a3012
    (the mac addresses aren't required for this, but I use the same text files for my wake-on-lan scripts.

    You will need a copy of sleep.exe if you want this to run through steadily rather than blasting through the whole lot at the same time.

    Also, it needs to be run as a batch file. Running it from the commandline as is will not work because of the escaped (doubled) percent signs.

  15. #30


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,534
    Thank Post
    271
    Thanked 752 Times in 590 Posts
    Rep Power
    218
    So fires are ok in the daytime, just not at night?

    Does this mean I should be putting a Halon dump* in the server room?


    *yes, I know we can't use Halon any more.

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Is there such a thing?
    By kennysarmy in forum Hardware
    Replies: 14
    Last Post: 22nd November 2011, 12:49 PM
  2. login for one thing
    By alonebfg in forum Windows
    Replies: 6
    Last Post: 6th December 2006, 01:41 AM
  3. Wow! What can't this thing do...
    By ajbritton in forum Links
    Replies: 3
    Last Post: 12th October 2006, 03:46 PM
  4. Is there such a thing as?
    By e_g_r in forum Educational Software
    Replies: 13
    Last Post: 10th January 2006, 09:20 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
  •