{"id":252,"date":"2009-04-06T10:15:54","date_gmt":"2009-04-06T15:15:54","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=252"},"modified":"2011-10-31T11:47:43","modified_gmt":"2011-10-31T16:47:43","slug":"psexec","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2009\/04\/psexec\/","title":{"rendered":"PSExec"},"content":{"rendered":"<p>In case you haven&#8217;t noticed, I like to use free tools that allow me to manage systems remotely.  I also ran an internal forum board with this exact information.  But due to potential problems, I am disbanding the internal and only relying on this site.<\/p>\n<p>MMC is built into Windows<br \/>\nSSH is mostly built into Linux<br \/>\nSSH is mostly built into Macintosh<\/p>\n<p>PSTools Suite is probably the best I&#8217;ve come across &#8211; free and is now updated by Microsoft.<\/p>\n<p>Pslist and Pskill are both very useful, but Psexec takes the cake.  Pslist shows all running programs on a system:<br \/>\n<code>pslist \\\\computername<\/code><br \/>\nPskill will kill remote programs (or PIDs) on any system assuming the system isn&#8217;t locked up beyond the system services functionality.<br \/>\n<code>pskill \\\\computername PID_or_Processname<\/code><\/p>\n<p>Here are some simple commands I use every day:<br \/>\nAnalyze remote system&#8217;s HD to see if it needs to be defragged<br \/>\n<code>psexec \\\\somemachine -s -d defrag.exe c: -a<\/code><br \/>\nForce remote system&#8217;s HD to defrag<br \/>\n<code>psexec \\\\somemachine -s -d defrag.exe c: -f<\/code><br \/>\nRun Internet Explorer and open it.thelibrarie.com website<br \/>\n<code>psexec \\\\somemachine -i -d \"C:\\program files\\internet explorer\\iexplore.exe\" http:\/\/it.thelibrarie.com<\/code><br \/>\nInstall an MSI program<br \/>\n<code>psexec -s -i \\\\somemachine msiexec -i c:\\locationofmsi.msi<\/code><br \/>\nOpen the Add\/Remove Programs Applet<br \/>\n<code>psexec -i -s \\\\somemachine control.exe appwiz.cpl<\/code><\/p>\n<p>***EDIT***<br \/>\nLooks like this really doesn&#8217;t work much on Windows 7 due to security restrictions.  I end up using pslist \\\\computername to list the running processes, and then taskkill \/S computername \/PID processID \/F to actually kill the running process.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case you haven&#8217;t noticed, I like to use free tools that allow me to manage systems remotely. I also ran an internal forum board with this exact information. But due to potential problems, I am disbanding the internal and only relying on this site. MMC is built into Windows SSH is mostly built into &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2009\/04\/psexec\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">PSExec<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":3,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":850,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/252\/revisions\/850"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}