+ Post New Thread
Results 1 to 8 of 8
How do you do....it? Thread, Remote shutdown computers that are logged off in Technical; Hi All. I would appreciate if someone could help me out. I have been searching this forum, looking for a ...
  1. #1
    has
    has is online now

    Join Date
    Jul 2011
    Location
    UK
    Posts
    61
    Thank Post
    18
    Thanked 8 Times in 7 Posts
    Rep Power
    8

    Remote shutdown computers that are logged off

    Hi All.
    I would appreciate if someone could help me out. I have been searching this forum, looking for a shutdown script that would import computer names from a text file and if the computer is logged off, will shutdown and if someone is logged in will leave it alone. I am new to creating scripts.

    Thanks in advance.

    Has

  2. #2

    Join Date
    Jan 2008
    Location
    Cheshire, UK
    Posts
    340
    Thank Post
    68
    Thanked 60 Times in 42 Posts
    Rep Power
    48
    Quote Originally Posted by has View Post
    Hi All.
    I would appreciate if someone could help me out. I have been searching this forum, looking for a shutdown script that would import computer names from a text file and if the computer is logged off, will shutdown and if someone is logged in will leave it alone.
    Psshutdown from SysInternals suite will take a text file and shut machines down. It won't ignore machines where a user is logged on. You could just use a long timeout and give users the ability to cancel the shutdown. This is what I do at the end of the day, this also performs a shutdown if the user left without logging off.

    You could also use FOG, it has a log off if idle and a shutdown after a predetermined time after logoff. Not scripted but configurable. Needs some configuring and requires a Linux server running FOG. FOG is normally used as an imaging system.

  3. Thanks to sjatkn from:

    speckytecky (3rd October 2011)

  4. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,715
    Thank Post
    3,246
    Thanked 1,048 Times in 970 Posts
    Rep Power
    364
    shutdownhertron

    Shutdownertron

  5. Thanks to mac_shinobi from:

    speckytecky (3rd October 2011)

  6. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    Not exactly what you want, but you can (as I do) create a Scheduled Task in 2008 R2 under Computer Config:

    Name: Shutdown Workstations
    Run: %SystemRoot%\System32\Shutdown.exe
    Arguments: -f -s -t 120

    Specify an admin username/password, then change the schedule as required to 6pm for example.

    Users will receive a 2 minute warning and will then shutdown automatically. Enough time to save documents and close any applications (optional).

    In theory you could have many shutdown schedules for different departments or OUs from your perspective. This works with Windows 7, but it should work with Windows XP and Vista too. I don't think 2000 had a shutdown.exe!

  7. Thanks to Michael from:

    speckytecky (3rd October 2011)

  8. #5
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    890
    Thank Post
    69
    Thanked 85 Times in 70 Posts
    Rep Power
    32
    BeyondExec will do what you asked for.

    For instance this command will shutdown all computers listed in the file room1.txt that are not logged on.
    beyondexec.exe -g room1.txt -d Shutdown -l 1 -f -n

    Computer names in the text file should each be on a separate line.

  9. Thanks to meastaugh1 from:

    speckytecky (3rd October 2011)

  10. #6
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    2,497
    Thank Post
    3,372
    Thanked 256 Times in 209 Posts
    Blog Entries
    3
    Rep Power
    109
    All new to me - hence the thanks given. Which is the easiest - if that's not a neg rep question!!

  11. #7
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,421
    Thank Post
    508
    Thanked 282 Times in 258 Posts
    Rep Power
    81
    Download Desktop Central Free Windows Tools from Manage engine it has shutdown/restart and GP Update and Wake up tools in there and a few others that re life savers - use it daily here.

    take a look here: Free Windows Tools from Desktop Central - Wake on LAN Tool | GPO Update Tool | Shutdown / Restart Tool | Software Inventory Tool | Join/Unjoin Computer Tool

    Like I say - a life saving piece of software!

  12. #8
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,421
    Thank Post
    508
    Thanked 282 Times in 258 Posts
    Rep Power
    81
    Features:

    Free Tools
    Remote Task Manager -- Wake On LAN -- Software Inventory
    Remote Command Prompt -- GPO Update -- Shutdown/Restart
    Join/Unjoin Computer -- Currently Logged On User -- Hard Disk Space Monitor
    Local User/Group List -- Network Share Browser -- Laptop Battery Power Monitor

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 10
    Last Post: 20th August 2009, 12:51 PM
  2. Computers that are RIS/WDS friendly
    By zshadar in forum Windows
    Replies: 9
    Last Post: 27th February 2008, 04:47 PM
  3. Replies: 3
    Last Post: 23rd March 2007, 09:36 AM
  4. Record the websites that are accessed
    By SpuffMonkey in forum How do you do....it?
    Replies: 55
    Last Post: 27th May 2006, 09:17 AM
  5. Replies: 4
    Last Post: 7th December 2005, 08:09 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
  •