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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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.

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.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.