{"id":6295,"date":"2022-10-25T05:47:57","date_gmt":"2022-10-25T05:47:57","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6295"},"modified":"2022-11-23T00:42:34","modified_gmt":"2022-11-23T00:42:34","slug":"iperf-rmm-automation-powershell","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell","title":{"rendered":"iPerf RMM Automation Powershell"},"content":{"rendered":"<div class=\"wp-block-wab-pastacode\">\n\t<div class=\"code-embed-wrapper\"> <pre class=\"language-markup code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markup code-embed-code\">###<br\/># Author: Dave Long &lt;dlong@cagedata.com&gt;<br\/># Gets an bandwidth test using iPerf3. Sum is the download speed of computer.<br\/>###<br\/><br\/>$client = &quot;TAUL7053&quot;<br\/>$iPerfDownload = &quot;https:\/\/iperf.fr\/download\/windows\/iperf-3.1.3-win64.zip&quot;<br\/>$psexecDownload = &quot;https:\/\/download.sysinternals.com\/files\/PSTools.zip&quot;<br\/>$iperfDownloadLocation = Join-Path $env:TEMP &quot;iperf.zip&quot;<br\/>$psxecDownloadLocation = Join-Path $env:TEMP &quot;PSTools.zip&quot;<br\/>$iPerfPath = Join-Path $env:TEMP &quot;iperf&quot;<br\/>$psexecPath = Join-Path $env:TEMP &quot;PSTools&quot;<br\/><br\/>#download and extract iPerf<br\/>if (!(Test-Path $iPerfPath)) {<br\/>  Invoke-WebRequest -Uri $iPerfDownload -OutFile $iperfDownloadLocation<br\/>  Expand-Archive -Path $iperfDownloadLocation -DestinationPath $iPerfPath<br\/>}<br\/><br\/>#download and extract psexec<br\/>if (!(Test-Path $psexecPath)) {<br\/>  Invoke-WebRequest -Uri $psexecDownload -OutFile $psxecDownloadLocation<br\/>  Expand-Archive -Path $psxecDownloadLocation -DestinationPath $psexecPath<br\/>}<br\/><br\/><br\/>#create temp directory<br\/>#null to stop output<br\/>$null = New-Item -Path \\\\$client\\c$\\Temp -type directory -Force <br\/><br\/>Set-Location (Join-Path $iPerfPath &quot;iperf-3.1.3-win64&quot;)<br\/><br\/>#copy iperf3 to client temp<br\/>Copy-Item -Path &#039;iperf3.exe&#039; -Destination \\\\$client\\c$\\Temp<br\/>Copy-Item -Path &#039;cygwin1.dll&#039; -Destination \\\\$client\\c$\\Temp<br\/><br\/><br\/>#start iperf server for download<br\/>#You can use -P option for limiting the incoming clients. For example if you run iperf -s -P 1 command, after the client finishes the test, the server shuts itself down.<br\/>Start-Process -Filepath &quot;$psexecPath\\psexec.exe&quot; -ArgumentList &quot;\\\\$client c:\\Temp\\iperf3.exe -s -1&quot;<br\/><br\/>#Wait to get iperfstartedonServer<br\/>Start-Sleep -Seconds 30<br\/><br\/>Write-Host &quot;Starting Download Test&quot;<br\/>$Download = &amp; .\\iperf3.exe --client $client -P 10 -t 60 -w 3M<br\/>if (($Download | Select-Object -Last 1) -eq &quot;iperf Done.&quot;) {<br\/>  $sender = $Download | Select-Object -Last 4 | Select-Object -First 2 | Select-Object -First 1<br\/>  $sender = [regex]::Matches($sender, &#039;\\d+\\sMbits[\/]sec&#039;).Value<br\/>  $sender = $sender -replace &quot; Mbits\/sec&quot;,&quot;&quot;<br\/>  #in Mbits\/sec<br\/>  $sender<br\/>  <br\/>  $receiver = $Download | Select-Object -Last 4 | Select-Object -First 2 | Select-Object -Last 1 <br\/>  $receiver = [regex]::Matches($receiver, &#039;\\d+\\sMbits[\/]sec&#039;).Value<br\/>  $receiver = $receiver -replace &quot; Mbits\/sec&quot;,&quot;&quot;<br\/>  #in Mbits\/sec<br\/>  $receiver<br\/>} else {<br\/>  Write-Host &quot;iPerf failed to get download speed.&quot;<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">iPerf RMM Automation Powershell<\/span> <\/div> <\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3904,4053],"class_list":["post-6295","post","type-post","status-publish","format-standard","hentry","category-research","tag-iperf","tag-rmm"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"iPerf RMM Automation Powershell | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-10-25T05:47:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-11-23T00:42:34+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"iPerf RMM Automation Powershell | Welcome to Pariswells.com\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#article\",\"name\":\"iPerf RMM Automation Powershell | Welcome to Pariswells.com\",\"headline\":\"iPerf RMM Automation Powershell\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2022-10-25T05:47:57+00:00\",\"dateModified\":\"2022-11-23T00:42:34+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#webpage\"},\"articleSection\":\"Research, iperf, RMM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#listItem\",\"name\":\"iPerf RMM Automation Powershell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#listItem\",\"position\":3,\"name\":\"iPerf RMM Automation Powershell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell\",\"name\":\"iPerf RMM Automation Powershell | Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/iperf-rmm-automation-powershell#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2022-10-25T05:47:57+00:00\",\"dateModified\":\"2022-11-23T00:42:34+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"iPerf RMM Automation Powershell | Welcome to Pariswells.com","description":"","canonical_url":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#article","name":"iPerf RMM Automation Powershell | Welcome to Pariswells.com","headline":"iPerf RMM Automation Powershell","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2022-10-25T05:47:57+00:00","dateModified":"2022-11-23T00:42:34+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#webpage"},"articleSection":"Research, iperf, RMM"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#listItem","name":"iPerf RMM Automation Powershell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#listItem","position":3,"name":"iPerf RMM Automation Powershell","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#webpage","url":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell","name":"iPerf RMM Automation Powershell | Welcome to Pariswells.com","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2022-10-25T05:47:57+00:00","dateModified":"2022-11-23T00:42:34+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"iPerf RMM Automation Powershell | Welcome to Pariswells.com","og:url":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell","article:published_time":"2022-10-25T05:47:57+00:00","article:modified_time":"2022-11-23T00:42:34+00:00","twitter:card":"summary","twitter:title":"iPerf RMM Automation Powershell | Welcome to Pariswells.com"},"aioseo_meta_data":{"post_id":"6295","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-10-25 05:47:15","updated":"2022-11-23 00:55:26","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tiPerf RMM Automation Powershell\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"iPerf RMM Automation Powershell","link":"https:\/\/pariswells.com\/blog\/research\/iperf-rmm-automation-powershell"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6295"}],"version-history":[{"count":4,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6295\/revisions"}],"predecessor-version":[{"id":6361,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6295\/revisions\/6361"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}