{"id":606,"date":"2010-03-24T15:17:28","date_gmt":"2010-03-24T20:17:28","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/2010\/03\/test-connection-troubles\/"},"modified":"2013-04-11T10:08:07","modified_gmt":"2013-04-11T14:08:07","slug":"test-connection-troubles","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/","title":{"rendered":"Test Connection Troubles"},"content":{"rendered":"<p>In this week\u2019s <a href=\"http:\/\/mcpmag.com\/Articles\/List\/Prof-Powershell.aspx\" target=\"_blank\">Prof. PowerShell<\/a> column, I have an <a href=\"http:\/\/mcpmag.com\/articles\/2010\/03\/23\/ping-test-cmdlet.aspx\" target=\"_blank\">article<\/a> on using the <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=135266\" target=\"_blank\">Test-Connection<\/a> in Windows PowerShell. I thought it was pretty straightforward, but I didn\u2019t take problems into account. I received an email asking what to do about error messages. For example, what if you have a computername in the list that can\u2019t be resolved to an IP address? At first I thought you could use a traditional Trap, but after a little testing that\u2019s not really going to give you what you want, I think. Here\u2019s how I would handle it.<\/p>\n<p>Now you can certainly use a Trap statement. You\u2019ll need to use the <em>\u2013ErrorAction<\/em> common parameter with Test-Connection cmdlet. That\u2019s what I would do with most cmdlets. But in this case, I\u2019m probably going to use it expecting a boolean value of True or False. The cmdlet is a wrapper for the Win32_PingStatus class and as such will attempt to resolve computernames.\u00a0 You can use an IP address for the computername, but you\u2019ll get the same type of error if the computer is down.<\/p>\n<p>Instead, I\u2019ll simply tell Test-Connection to ignore any exception and keep on rolling. I can (probaby) safely assume that if there was an exception that the computer is \u201cdown\u201d or I do not have a valid connection, which is the whole point of the cmdlet anyway, right?<\/p>\n<pre class=\"lang:ps decode:true crayon-selected\">$computers=@(\"172.16.10.69\",\"godot7\",\"foo\",\"client1\",\"serenity\")            \r\nforeach ($computername in $computers) {             \r\n\r\n   if (Test-Connection $computername -erroraction silentlyContinue  ) {             \r\n     write-host \"$computername UP\" -foregroundColor Green            \r\n   }             \r\n   else {            \r\n     write-host \"$computername DOWN\" -ForegroundColor RED            \r\n   }<\/pre>\n<p>On my network some of these computers are valid and some are not. I don\u2019t really care why a computer fails the connection test and I\u2019m not sure I can get that information anyway from the underlying exception. The exception is the same, although the message does vary. Here\u2019s almost the same code with the addition of a Trap statement.<\/p>\n<pre class=\"lang:ps decode:true\">$computers=@(\"172.16.10.69\",\"godot7\",\"foo\",\"client1\",\"serenity\")            \r\nforeach ($computername in $computers) {             \r\n  Trap {            \r\n        write-warning \"Error Trapped for $computername\"            \r\n        write-warning $_.Exception.Message            \r\n        Continue            \r\n    }            \r\n   if (Test-Connection $computername -erroraction stop  ) {             \r\n     write-host \"$computername UP\" -foregroundColor Green            \r\n   }             \r\n   else {            \r\n     write-host \"$computername DOWN\" -ForegroundColor RED            \r\n   }            \r\n }<\/pre>\n<p>The other significant change is that I changed the ErrorAction to Stop so that the exception is caught by the trap.\u00a0 The Trap is part of the ForEach construct so that PowerShell will continue with the next command in the same scope as the trap.<\/p>\n<p>Obviously there are many ways you can use Test-Connection and I won\u2019t swear that these ideas will work in all situations, absolutely. But hopefully it will give you a place to start.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this week\u2019s Prof. PowerShell column, I have an article on using the Test-Connection in Windows PowerShell. I thought it was pretty straightforward, but I didn\u2019t take problems into account. I received an email asking what to do about error messages. For example, what if you have a computername in the list that can\u2019t be&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,46,19],"tags":[534,550,174,173],"class_list":["post-606","post","type-post","status-publish","format-standard","hentry","category-powershell","category-prof-powershell","category-wmi","tag-powershell","tag-prof-powershell","tag-test-connection","tag-trap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Test Connection Troubles &#8226; The Lonely Administrator<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Test Connection Troubles &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"In this week\u2019s Prof. PowerShell column, I have an article on using the Test-Connection in Windows PowerShell. I thought it was pretty straightforward, but I didn\u2019t take problems into account. I received an email asking what to do about error messages. For example, what if you have a computername in the list that can\u2019t be...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2010-03-24T20:17:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-04-11T14:08:07+00:00\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Test Connection Troubles\",\"datePublished\":\"2010-03-24T20:17:28+00:00\",\"dateModified\":\"2013-04-11T14:08:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/\"},\"wordCount\":379,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"keywords\":[\"PowerShell\",\"Prof. PowerShell\",\"Test-Connection\",\"Trap\"],\"articleSection\":[\"PowerShell\",\"Prof. PowerShell\",\"WMI\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/\",\"name\":\"Test Connection Troubles &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2010-03-24T20:17:28+00:00\",\"dateModified\":\"2013-04-11T14:08:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/606\\\/test-connection-troubles\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/powershell\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Test Connection Troubles\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Test Connection Troubles &#8226; The Lonely Administrator","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/","og_locale":"en_US","og_type":"article","og_title":"Test Connection Troubles &#8226; The Lonely Administrator","og_description":"In this week\u2019s Prof. PowerShell column, I have an article on using the Test-Connection in Windows PowerShell. I thought it was pretty straightforward, but I didn\u2019t take problems into account. I received an email asking what to do about error messages. For example, what if you have a computername in the list that can\u2019t be...","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/","og_site_name":"The Lonely Administrator","article_published_time":"2010-03-24T20:17:28+00:00","article_modified_time":"2013-04-11T14:08:07+00:00","author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Test Connection Troubles","datePublished":"2010-03-24T20:17:28+00:00","dateModified":"2013-04-11T14:08:07+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/"},"wordCount":379,"commentCount":4,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"keywords":["PowerShell","Prof. PowerShell","Test-Connection","Trap"],"articleSection":["PowerShell","Prof. PowerShell","WMI"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/","name":"Test Connection Troubles &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"datePublished":"2010-03-24T20:17:28+00:00","dateModified":"2013-04-11T14:08:07+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/606\/test-connection-troubles\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"PowerShell","item":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},{"@type":"ListItem","position":2,"name":"Test Connection Troubles"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1923,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1923\/send-powershell-reports-by-mail\/","url_meta":{"origin":606,"position":0},"title":"Send PowerShell Reports by Mail","author":"Jeffery Hicks","date":"December 29, 2011","format":false,"excerpt":"Today I came across a post about pinging a list of computers and send the results as a table via Outlook. Brian is a very smart Active Directory guy so I offered some PowerShell suggestions to make his task even easier. Obviously you can only offer so much in a\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/12\/html-mail-300x192.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":134,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/134\/prof-powershell-is-taking-roll\/","url_meta":{"origin":606,"position":1},"title":"Prof. PowerShell is taking roll","author":"Jeffery Hicks","date":"March 6, 2008","format":false,"excerpt":"My weekly column that I've been writing for MCPMag.com is now officially Prof. PowerShell. The column's goal is to introduce you to PowerShell and help you get up to speed. I obviously can't teach you everything in a weekly 300 word column, but hopefully it will be enough to get\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1738,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1738\/ping-ip-range\/","url_meta":{"origin":606,"position":2},"title":"Ping IP Range","author":"Jeffery Hicks","date":"November 7, 2011","format":false,"excerpt":"Last week I came across a post on using PowerShell, or more specifically a .NET Framework class, to ping a range of computers in an IP subnet. The original post by Thomas Maurer is here. I added a comment. And after looking at this again I decided to take the\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5293,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/5293\/are-you-my-nano\/","url_meta":{"origin":606,"position":3},"title":"Are You My Nano?","author":"Jeffery Hicks","date":"October 21, 2016","format":false,"excerpt":"I've been diving a bit deeper into the Nano waters now that Windows Server 2016 is out the door. As I deployed a few servers I realized there was a potential long-term management issue. During the technical preview, Nano installations were recognized by their Tuva designation. But now, a Nano\u2026","rel":"","context":"In &quot;Nano Server&quot;","block_context":{"text":"Nano Server","link":"https:\/\/jdhitsolutions.com\/blog\/category\/nano-server\/"},"img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/10\/image_thumb-4.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/10\/image_thumb-4.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/10\/image_thumb-4.png?resize=525%2C300 1.5x"},"classes":[]},{"id":97,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/97\/powershell-get-content\/","url_meta":{"origin":606,"position":4},"title":"PowerShell Get Content","author":"Jeffery Hicks","date":"February 13, 2007","format":false,"excerpt":"One slick trick you can do in PowerShell with text files that's difficult to accomplish without extra tools is to display sections of text files without showing the entire file. When you use the Get-Content cmdlet, the resulting content is treated as an array of strings. This means you can\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5014,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/5014\/friday-fun-a-better-test-wsman\/","url_meta":{"origin":606,"position":5},"title":"Friday Fun: A Better Test-WsMan","author":"Jeffery Hicks","date":"May 27, 2016","format":false,"excerpt":"I saw a question on Facebook about how to get Test-WsMan to return a simple Boolean result. The Test-Connection cmdlet has a -Quiet parameter that makes this possible. But Test-Wsman does not.\u00a0 Certainly, you could script a comparable outcome. Here's one way: \"chi-hvr2\",\"chi-hvr1\",\"chi-p50\" | foreach { $r = Test-WSMan $_\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/05\/image_thumb-2.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/05\/image_thumb-2.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/05\/image_thumb-2.png?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=606"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/606\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}