{"id":1039,"date":"2011-12-16T11:32:31","date_gmt":"2011-12-16T09:32:31","guid":{"rendered":"http:\/\/blog.sfsoft.it\/?p=1039"},"modified":"2011-12-16T11:39:51","modified_gmt":"2011-12-16T09:39:51","slug":"windows-xp-e-desktop-disattivato","status":"publish","type":"post","link":"http:\/\/www.sfsoft.it\/blog\/2011\/12\/16\/windows-xp-e-desktop-disattivato\/","title":{"rendered":"Windows XP e desktop disattivato"},"content":{"rendered":"<p>A seguito di <em>malaware<\/em> vari potrebbe capitare che su un Windows XP si ripristina tutto e si rimuove il <em>malaware<\/em> ma rimane il problema del desktop disattivato, ovvero l&#8217;impossibilit\u00e0 di cliccarci sopra e nessuna icona.<\/p>\n<p>Ho trovato un articolo dove \u00e8 possibile scaricare un <em>vbscript<\/em> che serve a abilitare\/disabilitare il desktop.<\/p>\n<p><a href=\"http:\/\/www.pctips3000.com\/how-and-why-to-disable-the-windows-xp-desktop-icons\/\" target=\"_blank\">How To Disable The Windows XP Desktop Icons And Why<\/a><\/p>\n<p>Per completezza ricopio lo script nel caso il sito vada offline o l&#8217;articolo cancellato<\/p>\n<pre lang=\"vb\">'Enable or Disable Desktop Icons\r\n\r\nMessage = \"To work correctly, the script will close\" &amp; vbCR\r\nMessage = Message &amp; \"and restart the Windows Explorer shell.\" &amp; vbCR\r\nMessage = Message &amp; \"This will not harm your system.\" &amp; vbCR &amp; vbCR\r\nMessage = Message &amp; \"Continue?\"\r\n\r\nX = MsgBox(Message, vbYesNo, \"Notice\")\r\n\r\nIf X = 6 Then\r\n\r\nOn Error Resume Next\r\n\r\nDim WSHShell, n, MyBox, p, t, errnum, vers\r\nDim itemtype\r\nDim enab, disab, jobfunc\r\n\r\nSet WSHShell = WScript.CreateObject(\"WScript.Shell\")\r\np = \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoDesktop\"\r\n\r\nitemtype = \"REG_DWORD\"\r\n\r\nenab = \"ENABLED\"\r\ndisab = \"DISABLED\"\r\njobfunc = \"Desktop Icons are now \"\r\n\r\nt = \"Confirmation\"\r\nErr.Clear\r\nn = WSHShell.RegRead (p)\r\nerrnum = Err.Number\r\n\r\nif errnum &lt;&gt; 0 then\r\n\r\n\tWSHShell.RegWrite p, 0, itemtype\r\nEnd If\r\n\r\nIf n = 0 Then\r\n\tn = 1\r\nWSHShell.RegWrite p, n, itemtype\r\nMybox = MsgBox(jobfunc &amp; disab &amp; vbCR, 4096, t)\r\nElseIf n = 1 then\r\n\tn = 0\r\nWSHShell.RegWrite p, n, itemtype\r\nMybox = MsgBox(jobfunc &amp; enab &amp; vbCR, 4096, t)\r\nEnd If\r\n\r\nSet WshShell = Nothing\r\n\r\nOn Error GoTo 0\r\n\r\nFor Each Process in GetObject(\"winmgmts:\"). _\r\n\tExecQuery (\"select * from Win32_Process where name='explorer.exe'\")\r\n   Process.terminate(0)\r\nNext\r\n\r\nMsgBox \"Finished.\" &amp; vbcr &amp; vbcr , 4096, \"Done\"\r\n\r\nElse \r\n\r\nMsgBox \"No changes were made to your system.\" &amp; vbcr &amp; vbcr, 4096, \"User Cancelled\"\r\n\r\nEnd If<\/pre>\n<p>Copiare il testo sopra e copiarlo in un file dal nome ad esempio <em>enabledisabledesktopicons.vbs<\/em> spostarlo sulla macchina con il desktop disabilitato ed eseguirlo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A seguito di malaware vari potrebbe capitare che su un Windows XP si ripristina tutto e si rimuove il malaware ma rimane il problema del desktop disattivato, ovvero l&#8217;impossibilit\u00e0 di cliccarci sopra e nessuna icona. Ho trovato un articolo dove \u00e8 possibile scaricare un vbscript che serve a abilitare\/disabilitare il desktop. How To Disable The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,138,31],"tags":[12,142,35],"_links":{"self":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/1039"}],"collection":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/comments?post=1039"}],"version-history":[{"count":6,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/1039\/revisions"}],"predecessor-version":[{"id":1042,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/1039\/revisions\/1042"}],"wp:attachment":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/media?parent=1039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/categories?post=1039"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/tags?post=1039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}