I want to restart windows server remotely through the php script. But I am unable to do that.
I have created the .bat file on the windows server but I am unable to reach to that file remotely. I am using exec() function to do that using php
exec('c:\WINDOWS\system32\cmd.exe /c START C:\WINDOWS\abc.bat');
exec('shutdown -r -f -t 10 -m \\\\IP-ADDRESS -c "please wait system is rebooting"');