{"id":234,"date":"2005-12-24T19:12:27","date_gmt":"2005-12-25T00:12:27","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=234"},"modified":"2005-12-24T19:12:27","modified_gmt":"2005-12-25T00:12:27","slug":"shutoff-service-script","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=234","title":{"rendered":"shutoff service script"},"content":{"rendered":"<p>There&#8217;s a WService recipe on the Python cookbook:<br \/>\nhttp:\/\/aspn.activestate.com\/ASPN\/Cookbook\/Python\/Recipe\/115875<\/p>\n<p>and I&#8217;ve written a little script so far for myself which reads:<\/p>\n<p>import WService<\/p>\n<p>def disableService(serviceName):<br \/>\n     ws = WService.WService(serviceName)<br \/>\n     # print ws.infostartup()<br \/>\n     ws.setstartup(&#8220;disabled&#8221;)<br \/>\n     # print ws.infostartup()<\/p>\n<p>disableService(&#8220;Net Logon&#8221;)<br \/>\ndisableService(&#8220;Remote Registry&#8221;)<br \/>\ndisableService(&#8220;Themes&#8221;)<\/p>\n<p>print &#8216;Finished&#8217;<\/p>\n<p>\nIt is, perhaps, a lot of work just for a one-off exercise, but useful <br \/>\nfor all those automation-junkies out there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a WService recipe on the Python cookbook: http:\/\/aspn.activestate.com\/ASPN\/Cookbook\/Python\/Recipe\/115875 and I&#8217;ve written a little script so far for myself which reads: import WService def disableService(serviceName): ws = WService.WService(serviceName) # print ws.infostartup() ws.setstartup(&#8220;disabled&#8221;) # print ws.infostartup() disableService(&#8220;Net Logon&#8221;) disableService(&#8220;Remote Registry&#8221;) disableService(&#8220;Themes&#8221;) &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=234\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-234","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=234"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}