ajout fichier stop.php
This commit is contained in:
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);
|
||||
?>
|
||||
Reference in New Issue
Block a user