Windows Xp - Allowing users to abort remote shutdown

Tagged:

I have developed a batch script that will remotley shutdown all of our PC's (using the shutdown \\machinename command) in the office outwith working hours, but would like to give the users the ability to cancel this shutdown, say for example if they are working late.

My inital thought was to provide a batch file that the users could run (that executes the shutdown -a command), however when users run this is says they do not have the nessisarry permissions to run this command.

I could modify the group policy setting "Force shutdown from a remote system", to add provide users with this privalage, but im not sure if this the the only/best way of doing it?

Also - I have tried using other remote shutdown utilitys, however these will not run on our machines due to our antivirus software blocking remote execution of applications, i dont have any control over the AV software.


Sean TaylorH
2009-05-18 12:20:40 Scores:2

3 answers

Answer 1
Scores:2

One way to do it would be to copy a batch file to each system and spawn it under your own credentials remotely. The batch file would display a message "Hit Control-C to abort", wait for 60 seconds, then issue the reboot command locally (as opposed to a remote shutdown). Here's how to do waits in batch files.

The black DOS window will pop up on their screen while they're working. I'd go with 60 seconds, maybe even 120 because not everybody's staring at their screen while they work - they might be running to the bathroom or reading a printout.

Brent Ozar H
2009-05-18 12:31:16
Thanks, managed to come up with a solution based around this concept.
Sean Taylor H
2009-06-14 15:44:06 Scores:0
Answer 2
Scores:1

Similar to the other post, if you can execute a VBScript under your creds you can use the WScript Shell Popup Method. That allows for a timeout in seconds to be set. You can have the popup appear for several seconds and if the user doesn't abort, carry out the reboot.

You can also remove the wait timeout and the message box will sit indefinitely waiting for user input.

Rob Haupt H
2009-05-18 14:13:00
Answer 3
Scores:0

Try use Network Shutdown Tool. Good luck.

ProvianceH
2009-08-19 01:31:15
Share |
View original post at serverfault.com

Related topics

Remote administration of Windows (and helping users)

I need a tool which allows to take controll of user keyboard and/or mouse with support of Linux client (preferably on FLOSS license). It should ask the user about permission (I don't want to give a free troyan crackers). The NAT is not a problem - I have VPN. It ...

kicking / logging out remote windows users?

I'd like to have something akin to a unix "who" and an option to kick out RDP sessions that are not supposed to be there (i.e. using up the limited number of connections). This is for a win2003 server Standard. Additional info: this is a devel environment, people all use RDP ...

Running Apache with privileges for remote shutdown on Windows

I'm having a problem with Apache HTTPD: I have a PHP application that executes the Windows command shutdown -s -m \\<some machine> -t 0 It is used to shutdown unused servers in a network from a remote location. The problem is, that I need to run that PHP app under a user account that ...

Remote shutdown windows 7 machines in a workgroup

I just have ended up in a situation where I have lots of noisy computers in my office that I want to be able to shut down remotely in an automated way. I'm currently not running using a domain but a workgroup and I would prefer to keep it that way ...

Creating local users on remote windows server using c#

Provided I have admin access, I need a way to manage (Create, modify, remove) local accounts in a remote machine from an ASP.NET client. I'm clueless in how to approach this. Is WMI a possibility (System.Management namespace)? Any pointers? ...

Windows Vista Remote Desktop - simultaneous users

I am able to connect to my windows vista machine using remote desktop. However, as soon as I connect, the user which is working on the PC gets locked. (I am using a different account to connect). And if the user working on actual machine tries to login again, he ...

Remote shutdown

Having a MAC OS X Server on a network for all windows computer,how to do the Remote Shutdown for another computer on the network. shutdown /m \\Computername /s /t 0 is not working ...

Shutdown a remote computer connected in LAN in any preferable language

I want to shut down a remote Windows computer (ex. a Windows computer connected in LAN.) I have tried a lot but I could not find the solution. Does anyone have an idea on how to shut down the remote computer? Any language would work. ...

windows - allowing remote desktop machine to access local files

currently i have two machines A and B... both are running WinXP. I am on machine A and using mstsc to connect to machine B. Now, how can i see from machine B the cdrom, usb, disk drives of machine A? even more if connect any usb to machine A can ...

A batch file for shutdown with prompt option to abort it and re-run after a certain time of amount?

I have a batch file to shutdown the PC @echo off Shutdown /s /f /t 600 /c "Your system will shutdown in 10 min" To abort this operation I've another one shutdown /a Now what I'm looking for is there any way that when ...