Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there GP to have restart and not shutdown Privileges?

Status
Not open for further replies.

Saavyd

MIS
May 3, 2006
13
US
Recently I had a situation where one of our admins was working on a server from home. By accident he told the server to shut down instead of restart. Since I live the closest I had to go turn the server back on. Is there a way to only allow a group to only have restart and not shutdown?

So far i've been able to make a policy to take away the shutdown option when loging on through Terminal services, but this also takes away the restart option. Now this only leaves me the option to restart using command-line.

I'm hopping there is a better way.

Our environment is Windows 2000 server.
 
Add an icon for restart using WMI.

Copy this code to a text file and give it a VBS extension.

Code:
On Error Resume Next
mname = "."
if Msgbox("Are you sure you want to reboot server?", vbYesNo, "Reboot Machine") = vbYes then

		Set OpSysSet = GetObject("winmgmts:{impersonationLevel=impersonate,(RemoteShutdown)}//" & mname).ExecQuery("select * from Win32_OperatingSystem where Primary=true")
		for each OpSys in OpSysSet
			OpSys.Reboot()
 		next
end if

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Since this is a server, I would expect it supports Wake on Lan - make sure that's setup and then you can use a wake on LAN tool to remotely power on the system (a former colleague of mine did a similar thing, but restarted the system from 20 miles away by using Wake On LAN).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top