server shut down remotetely


I have windows 2008 server and 2012 server.  People are staying late in my office and before going home we shut down our serves.
But for this I have to tell them server password and also they need to physically go to server room.

Is there any way through this users can shut down server without entering password. Just click on file and it will shut down server. Script or something else.

Pravin 185IT Service ManagerAsked:
Who is Participating?
Michael FowlerSolutions ConsultantCommented:
In a text file type

Shutdown \\servername2 /f /t 00
Shutdown \\servername1 /f /t 00

* replace servername with the actual server names
Then save it with the extension .bat
Michael FowlerSolutions ConsultantCommented:
The shutdown command can be run remotely.

A better option could be to create a scheduled task that will shutdown the servers at say 9pm
Servers are meant to run full time. Don't know why you would want to shut it down every night.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Pravin 185IT Service ManagerAuthor Commented:
Mr. Michael74

This is also a long process. Some time officeboy will shut down server.

I am finding where click on only a single file (script) which will shut down server. SO for my 2 server I will create 2 script files which will lying on desktop.

So users just need to double click on it

that set.

As mentioned already, why shutdown the server at night? When do you run the backups? Normally that would be done at night, and it can often take some time. Backups are best done when users aren't accessing the server. Besides that there are usually other tasks running at night too, like virus scans etc. If you want the server shutdown, you can usually run a script directly from the backup utility that shuts the server down after the backup has finished. As that would usually be in the early morning hours it would be unlikely anyone would still be working on it.
Neadom TuckerCommented:
Yes I agree with rindi.  Servers are servers I would be interested in know why you decide the shut them down.  Security, Power Savings or something different?
SandeepSr System AdministratorCommented:
You can make use of Shutdown command and save it as .Bat file but assuming your users also do have Local Admin access on the remote servers then only these commands will work.

Simply type below things in a Notepad and save that file as XYZ.bat

shutdown /s /f /m \\RemoteServerName

Reference document is

Also I agree with others as if you got servers then why you shutting them down? Servers are meant to provide 24x7 Uptime.
Pravin 185IT Service ManagerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.