{"id":1256,"date":"2016-11-22T14:43:36","date_gmt":"2016-11-22T13:43:36","guid":{"rendered":"http:\/\/les-fougs.com\/info\/?p=1256"},"modified":"2018-11-12T10:51:38","modified_gmt":"2018-11-12T09:51:38","slug":"remote-command","status":"publish","type":"post","link":"http:\/\/les-fougs.com\/wordpress\/2016\/11\/22\/remote-command\/","title":{"rendered":"Remote command"},"content":{"rendered":"<h3>Linux :<\/h3>\n<h4>\u00a0Serveur :<\/h4>\n<p>plink -ssh -l root -pw <span style=\"color: #ff0000;\">mot_de_passe<\/span> <span style=\"color: #3366ff;\">nom_du_serveur<\/span> &laquo;&nbsp;commande&nbsp;&raquo;<\/p>\n<h3>Windows :<\/h3>\n<h4>\u00a0Services :<\/h4>\n<p>sc \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span>\u00a0query\u00a0<span style=\"color: #339966;\">nom_du_service<\/span>\u00a0&nbsp;&raquo; | find &laquo;&nbsp;RUNNING&nbsp;&raquo;<br \/>\nif !errorlevel! equ 0 \u00a0sc \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span> stop &laquo;&nbsp;<span style=\"color: #339966;\">nom_du_service<\/span>&nbsp;&raquo;<\/p>\n<p>sc \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span>\u00a0query <span style=\"color: #339966;\">nom_du_service<\/span><span style=\"color: #000000;\"><br \/>\n<\/span><\/p>\n<p style=\"font-style: normal; font-weight: 300; line-height: 20.8px;\">sc \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span>\u00a0start\u00a0<span style=\"color: #339966;\">nom_du_service<\/span><\/p>\n<p style=\"font-style: normal; font-weight: 300; line-height: 20.8px;\">sc \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span>\u00a0stop\u00a0<span style=\"color: #339966;\">nom_du_service<\/span><\/p>\n<p><span style=\"font-size: 16px;\">\u00a0Serveur :<\/span><\/p>\n<p>shutdown \/s \/m \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span> \/t 30 \/c &laquo;&nbsp;BatchStop&nbsp;&raquo; \/f \/d p:4:1<\/p>\n<p>QUSER \/SERVER:<span style=\"color: #3366ff;\">nom_du_serveur<\/span><\/p>\n<p><span style=\"color: #3366ff;\"><span style=\"color: #000000;\">LOGOFF <span style=\"color: #ff0000;\">username<\/span> \/SERVER:<span style=\"color: #3366ff;\">nom_du_serveur<\/span> \/V\u00a0<\/span><br \/>\n<\/span><\/p>\n<h5>\u00a0Psexec :<\/h5>\n<p>set PATH=%PATH%;c:\\Program Files\\pstools<\/p>\n<p>L:\\Soft\\PsExec\\psexec.exe \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span>\u00a0cmd \/c <span style=\"color: #339966;\">commande<\/span><\/p>\n<p>psexec \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span> cmd \/c change logon \/query<\/p>\n<p>psexec \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span>\u00a0cmd \/c change logon \/enable<\/p>\n<p>psexec \\\\<span style=\"color: #3366ff;\">nom_du_serveur<\/span>\u00a0cmd \/c change logon \/disable<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux : \u00a0Serveur : plink -ssh -l root -pw mot_de_passe nom_du_serveur &laquo;&nbsp;commande&nbsp;&raquo; Windows : \u00a0Services : sc \\\\nom_du_serveur\u00a0query\u00a0nom_du_service\u00a0&nbsp;&raquo; | find &laquo;&nbsp;RUNNING&nbsp;&raquo; if !errorlevel! equ 0 \u00a0sc \\\\nom_du_serveur stop &laquo;&nbsp;nom_du_service&nbsp;&raquo; sc \\\\nom_du_serveur\u00a0query nom_du_service sc \\\\nom_du_serveur\u00a0start\u00a0nom_du_service sc \\\\nom_du_serveur\u00a0stop\u00a0nom_du_service \u00a0Serveur : shutdown \/s \/m \\\\nom_du_serveur \/t 30 \/c &laquo;&nbsp;BatchStop&nbsp;&raquo; \/f \/d p:4:1 QUSER \/SERVER:nom_du_serveur LOGOFF username \/SERVER:nom_du_serveur \/V\u00a0 &hellip; <a href=\"http:\/\/les-fougs.com\/wordpress\/2016\/11\/22\/remote-command\/\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;Remote command&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[53,46],"tags":[],"_links":{"self":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/1256"}],"collection":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1256"}],"version-history":[{"count":1,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/1256\/revisions"}],"predecessor-version":[{"id":2074,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/1256\/revisions\/2074"}],"wp:attachment":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1256"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}