{"id":82,"date":"2020-09-29T19:14:50","date_gmt":"2020-09-29T17:14:50","guid":{"rendered":"https:\/\/www.lamouroux.net\/?p=82"},"modified":"2020-09-29T19:14:52","modified_gmt":"2020-09-29T17:14:52","slug":"reset-windows-update","status":"publish","type":"post","link":"https:\/\/www.lamouroux.net\/index.php\/2020\/09\/29\/reset-windows-update\/","title":{"rendered":"Reset Windows Update"},"content":{"rendered":"\n<p>Des probl\u00e8mes de mise \u00e0 jour qui ne s&rsquo;applique pas ? De client Windows Update qui refuse de s&rsquo;enregistrer aupr\u00e8s de votre serveur WSUS ? Pas de panique, voici la solution \ud83d\ude42<\/p>\n\n\n\n<p>Le script s&rsquo;applique lorsque vous avez besoin de l&rsquo;ex\u00e9cuter \u00e0 distance, il peut tout \u00e0 fait s&rsquo;adapter pour \u00eatre ex\u00e9cut\u00e9 en local, ou bien m\u00eame en bat.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">En version ex\u00e9cution distante<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>wmic \/node:IP_DISTANTE process call create \"cmd.exe \/c net stop bits &amp;&amp; net stop wuauserv &amp;&amp; net stop cryptsvc\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c del \/F \/Q C:\\Windows\\WindowsUpdate.log\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c rd \/S \/Q C:\\Windows\\SoftwareDistribution\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c netsh winsock reset\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c proxycfg.exe -d\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c net start bits &amp;&amp; net start wuauserv\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c bitsadmin.exe reset \/allusers\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c netsh winhttp reset proxy\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c net stop wuauserv &amp;&amp; net start wuauserv &amp;&amp; net start cryptsvc\"\nwmic \/node:IP_DISTANTE process call create \"cmd.exe \/c wuauclt \/ReportNow \/DetectNow\"\n<\/code><\/pre>\n\n\n\n<p>Bien \u00e9videmment, n&rsquo;oubliez pas de remplacer \u00ab\u00a0IP_DISTANTE\u00a0\u00bb par votre adresse \ud83d\ude09<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">En version local ou bat<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>net stop bits &amp;&amp; net stop wuauserv &amp;&amp; net stop cryptsvc\ndel \/F \/Q C:\\Windows\\WindowsUpdate.log\nrd \/S \/Q C:\\Windows\\SoftwareDistribution\nsc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)\nsc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)\nnetsh winsock reset\nproxycfg.exe -d\nnet start bits &amp;&amp; net start wuauserv\nbitsadmin.exe reset \/allusers\nnetsh winhttp reset proxy\nnet stop wuauserv &amp;&amp; net start wuauserv &amp;&amp; net start cryptsvc\nwuauclt \/ReportNow \/DetectNow\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Des probl\u00e8mes de mise \u00e0 jour qui ne s&rsquo;applique pas ? De client Windows Update qui refuse de s&rsquo;enregistrer aupr\u00e8s de votre serveur WSUS ? Pas de panique, voici la solution \ud83d\ude42 Le script s&rsquo;applique lorsque vous avez besoin de l&rsquo;ex\u00e9cuter \u00e0 distance, il peut tout \u00e0 fait s&rsquo;adapter pour \u00eatre ex\u00e9cut\u00e9 en local, ou [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[15,14],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-wsus","tag-windows-update","tag-wsus"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":1,"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/posts\/82\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lamouroux.net\/index.php\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}