{"id":1170,"date":"2022-04-01T14:59:12","date_gmt":"2022-04-01T06:59:12","guid":{"rendered":"https:\/\/blog.wallaceho.com\/?p=1170"},"modified":"2022-04-01T14:59:14","modified_gmt":"2022-04-01T06:59:14","slug":"utilize-pstools-for-analytic","status":"publish","type":"post","link":"https:\/\/blog.wallaceho.com\/?p=1170","title":{"rendered":"Utilize PsTools for analytic"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/download.sysinternals.com\/files\/PSTools.zip\">https:\/\/download.sysinternals.com\/files\/PSTools.zip<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PSTools is a set of collection of similar tools allow you to manage remote systems as well as the local one. The tool can execute with powershell and schedule tasks to let you perform a lot of remote tasks and troubleshooting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is an example for psping.exe in PStools, not only to measure network performance but also to check the health of the website. We can simply write a BAT script to create the ping result log with timestamp. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo %date%\r\nSET mm=%date:~4,2%\r\nSET dd=%date:~7,2%\r\nSET yy=%date:~12,2%\r\necho %time%\r\nSET hh=%time:~0,2%\r\nSET min=%time:~3,2%\r\nSET ss=%time:~6,2%\r\n\"C:\\temp\\psping.exe\" xxx.com:443 >> \"C:\\temp\\log\\logfile_%mm%%dd%%yy%_%hh%%min%%ss%.log\"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/download.sysinternals.com\/files\/PSTools.zip PSTools is a set of collection of similar tools allow you to manage remote systems as well as the local one. The tool can execute with powershell and schedule tasks to let you perform a lot of remote tasks &hellip; <a href=\"https:\/\/blog.wallaceho.com\/?p=1170\">Continue reading <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":[3],"tags":[],"class_list":["post-1170","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/posts\/1170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1170"}],"version-history":[{"count":1,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/posts\/1170\/revisions"}],"predecessor-version":[{"id":1172,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/posts\/1170\/revisions\/1172"}],"wp:attachment":[{"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}