ajout fichier stop.php
This commit is contained in:
parent
cfe3507e9c
commit
ce0ef1875e
8
admin/scripts_distants/windows_server/stop.php
Normal file
8
admin/scripts_distants/windows_server/stop.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
// Ce script lance un shutdown (ou restart) sur une machine
|
||||||
|
$host = $_POST['host'];
|
||||||
|
$action = $_POST['act'];
|
||||||
|
|
||||||
|
$command = 'shutdown /m \\\\' .$host.' /'.$action.' /f /t 0';
|
||||||
|
exec($command);
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user