Use the Command:
shutdown /r /m \\<Computer Name> /t 0 /c "Comment" /f
Remote Control of a Windows Server services is accomplished using a domain computer and vaild domain credentials with appropriate permissions:
use the following command(s):
sc \\<Computer Name> query
sc \\<Computer Name> config "[SERVICE NAME]" start= disabled
This HOWTO assumes that your FreePBX system is sitting behind a NATed firewall with no direct connection to the outside world and it is NOT in the DMZ zone. If you are relying on this article to set-up your system, DO NOT place your system on a public IP address or a DMZ zone. This article does not address the potential security implications involved in such a setup.
The four key considerations in setting up remote extensions are:
Original article can be found here: http://blog.powershell.no/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/
As you may know, Windows PowerShell 2.0 introduced a new remoting feature, allowing for remote management of computers.
Original article can be located here: http://jfrmilner.wordpress.com/2010/10/13/configure-powershell-remoting-using-group-policy-on-legacy-domains/
Download Group Policy Administrative Templates from Microsoft from here: http://www.microsoft.com/en-us/download/confirmation.aspx?id=25119