+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
Windows Thread, XP Screensaver causes Shutdown script to fail in Technical; Hi Guys, Hi, I have a script that automatically shuts down all PCs in our Windows XP domain at 8pm, ...
  1. #1
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    605
    Thank Post
    51
    Thanked 12 Times in 12 Posts
    Rep Power
    21

    XP Screensaver causes Shutdown script to fail

    Hi Guys,
    Hi, I have a script that automatically shuts down all PCs in our Windows XP domain at 8pm, so that the backup doesn't fail due to open files (Did someone say SIMS?). The staff know that they are supposed to switch off their machines every night, and that if they forget and leave work open then they are likely to lose it.

    Unfortunately the script fails if, as is most likely, the PC is showing a screen saver (even the default Windows XP screensaver without a password). If I go to a machine that should have been shut down and move the mouse to get rid of the screen saver, the PC immediately shows "Windows is shutting down" and shuts down. The script was not able to execute while the screensaver was running.

    I do use the "force" switch for my script. Here is an example of the line:

    SHUTDOWN -S -F -T 00

    Any ideas would be a great help.
    Cheers

  2. #2
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 44 Times in 34 Posts
    Rep Power
    28

    Re: XP Screensaver causes Shutdown script to fail

    an idea then would be to disable screensavers and have it set to turn off the monitors after x amount of minutes

    Its what I did until trying the logoff screensaver tool that dont seem to work 100%

    Is the script running locally or are you using it on the DC and using the:
    Code:
    /m \\COMPUTERNAME
    style way of doing this?

    I dont shutdown pc's - on the basis that they might not be tuned on again and if I need to remtely fix something and its off - well I've have to "walk" to sort if out lol

    i'll probably use the /l option to force a logoff instead, tho i notice it cant be used remotely grrrr

    Cheers
    Nath

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Re: XP Screensaver causes Shutdown script to fail

    Use pskill to kill the screensaver process beforehand. Also psshutdown doesn't suffer from this problem.

  4. #4
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    605
    Thank Post
    51
    Thanked 12 Times in 12 Posts
    Rep Power
    21

    Re: XP Screensaver causes Shutdown script to fail

    Quote Originally Posted by tarquel
    an idea then would be to disable screensavers and have it set to turn off the monitors after x amount of minutes
    I was hoping to not have to disable the screensaver, but if needs must, then I will. Can you set the monitor turn-off time from a group policy (I'm certainly not walking to the machines )

    Quote Originally Posted by tarquel
    Is the script running locally or are you using it on the DC and using the:
    Code:
    /m \\COMPUTERNAME
    style way of doing this?
    I do it the remote way (/m \\%computername%) where all the PCs are read in from a script. I don't worry about them being left off as I like to do everything through group policies, so if I make a change they'll get it the next time they switch on, whenever that is.

    Cheers for the help.

  5. #5
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    605
    Thank Post
    51
    Thanked 12 Times in 12 Posts
    Rep Power
    21

    Re: XP Screensaver causes Shutdown script to fail

    Quote Originally Posted by Geoff
    Use pskill to kill the screensaver process beforehand. Also psshutdown doesn't suffer from this problem.

    Good idea. What is the screensaver process? I haven't noticed that before. Cheers.

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Re: XP Screensaver causes Shutdown script to fail

    Use pslist to list running processes on a machine.

  7. #7
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 44 Times in 34 Posts
    Rep Power
    28

    Re: XP Screensaver causes Shutdown script to fail

    Quote Originally Posted by eejit
    I was hoping to not have to disable the screensaver, but if needs must, then I will. Can you set the monitor turn-off time from a group policy (I'm certainly not walking to the machines )
    Indeed, but it aint the easiest thing to do lol - seems to work ok (weird why this is - you can configure most other stuff but power configuring is a joke lol)

    Nath

  8. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Re: XP Screensaver causes Shutdown script to fail


  9. #9
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    605
    Thank Post
    51
    Thanked 12 Times in 12 Posts
    Rep Power
    21

    Re: XP Screensaver causes Shutdown script to fail

    Nice one Geoff, Thanks.

  10. #10
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 44 Times in 34 Posts
    Rep Power
    28

    Re: XP Screensaver causes Shutdown script to fail

    Looks similar to the one i got (same name oddly) but was damn confusing. I'll have to try this one instead

    Cheers
    Nath

  11. #11
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    605
    Thank Post
    51
    Thanked 12 Times in 12 Posts
    Rep Power
    21

    Update

    Quote Originally Posted by Geoff
    Use pskill to kill the screensaver process beforehand. Also psshutdown doesn't suffer from this problem.
    Cheers Geoff, I just wanted to confirm that PSShutdown does not have this problem. It works if no one is logged on too.

    Cheers for that.

  12. #12

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,192
    Thank Post
    53
    Thanked 270 Times in 178 Posts
    Rep Power
    131

    Re: XP Screensaver causes Shutdown script to fail

    Sorry to resurrect this one - but I've been trying to use psshutdown to force user logoff in the evenings - but although they logoff just fine - the logoff scripts are not run - and thusly the limitlogon records get left on - leaving me with a manual tidy up job each morning. Anybody know how to avoid this problem?

  13. #13

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Re: XP Screensaver causes Shutdown script to fail

    What format are the limitlogin records as? Can we devise a script to nuke them automatically somehow?

  14. #14
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,943
    Thank Post
    115
    Thanked 272 Times in 250 Posts
    Rep Power
    104

    Re: XP Screensaver causes Shutdown script to fail

    Scheduled task to delete files or DB records?

  15. #15

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,192
    Thank Post
    53
    Thanked 270 Times in 178 Posts
    Rep Power
    131

    Re: XP Screensaver causes Shutdown script to fail

    Quote Originally Posted by Geoff
    What format are the limitlogin records as? Can we devise a script to nuke them automatically somehow?
    Thats a proper IT answer! Instead of trying to make it work - lets just solve the problem - wish I'd thought of that! ops:

    I dunno about the format - but I'll go and have a look now - Cheers Geoff

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

Similar Threads

  1. Shutdown batch script stalls if 1 PC is shut down
    By PrimaryTech in forum Scripts
    Replies: 8
    Last Post: 7th July 2007, 06:04 PM
  2. Replies: 3
    Last Post: 23rd March 2007, 09:36 AM
  3. Words fail me #2
    By KarlGoddard in forum General Chat
    Replies: 14
    Last Post: 1st March 2006, 10:51 PM
  4. Words fail me
    By Norphy in forum General Chat
    Replies: 7
    Last Post: 1st March 2006, 08:14 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
  •