{"id":4368,"date":"2015-04-10T13:40:46","date_gmt":"2015-04-10T17:40:46","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/?p=4368"},"modified":"2015-04-10T13:47:08","modified_gmt":"2015-04-10T17:47:08","slug":"friday-fun-get-powershell-user-groups","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/","title":{"rendered":"Friday Fun: Get PowerShell User Groups"},"content":{"rendered":"<p>The other day Don Jones tweeted about find a PowerShell user group. In case you didn't know, just about every user group associated with PowerShell can be found online at <a href=\"http:\/\/powershellgroup.org\/\" target=\"_blank\">http:\/\/powershellgroup.org<\/a>. This is a terrific resource for finding a user group near you. Of course, Twitter being what it is someone joked about the lack of a Get-PSUserGroup cmdlet. So, taking the joke as a challenge I built on. Don also was going to build something but I haven't seen what he came up with. I suspect it will be similar to mine.<\/p>\n<p>Because we there is a web site, we can scrape it with Invoke-WebRequest.<\/p>\n<pre><code>$URL = http:\/\/powershellgroup.org\/og\r\n$r = Invoke-WebRequest $url<\/code><\/pre>\n<p>Instead of trying to parse the document object model (DOM), the resulting object has a property called AllElements which is exactly what the name implies. I had to look at the source HTML on the page to identify the elements I needed to reference. Since it seemed I could get what I want via an HTML class, I grouped the elements by class and turned it into a hashtable.<\/p>\n<pre><code>$c = $r.AllElements | group class -AsHashTable -AsString<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe1.png\" alt=\"\" \/><\/p>\n<p>I opted for a hashtable to make it easier to get all the elements for a given class. For example, I knew the 'views-field views-field-title' class would give me the name of each group.<\/p>\n<pre><code>$c.'views-field views-field-title'<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe2.png\" alt=\"\" \/><\/p>\n<p>Likewise I knew the 'views-field views-field-description' class would provide a description.<\/p>\n<pre><code>$c.'views-field views-field-description'<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe3.png\" alt=\"\" \/><\/p>\n<p>Knowing what each object looked like, you could also pipe to Get-Member to discover property names, made it easy to extract the relevant information.<\/p>\n<pre class=\"lang:ps decode:true \" >#get total group count less one for the header\r\n$count = ($c.'views-field views-field-description'.count)\r\nfor ($i = 1; $i -lt $count; $i++) {\r\n  $groupname = $c.'views-field views-field-title'[$i].innertext\r\n  $description = $c.'views-field views-field-description'[$i].InnerText\r\n  [pscustomobject]@{\r\n    Name = $groupname\r\n    Description = $description\r\n  }\r\n}\r\n<\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe4.png\" alt=\"\" \/><\/p>\n<p>Once I had the core concepts down, I built an advanced function around them called Get-PSUserGroup.<\/p>\n<pre class=\"lang:ps decode:true \" >Function Get-PSUserGroup {\r\n&lt;#\r\n.Synopsis\r\nGet PowerShell User Groups\r\n.Description\r\nThis command uses Invoke-Webrequest to retrieve user group information from PowerShellGroup.org. This command has no parameters.\r\n.Example\r\nPS C:\\&gt; get-psusergroup\r\n\r\nName        : Central Texas Powershell Users Group\r\nDescription : Powershell Users Group in Central Texas\r\nContact     : crshnbrn\r\nMemberCount : 3\r\nStatus      : Join\r\nLink        : http:\/\/powershellgroup.org\/CentralTexas%20-%20Austin\r\n\r\nName        : Strasbourg PowerShell User Group\r\nDescription : Strasbourg PowerShell User Group\r\nContact     : stephanevg\r\nMemberCount : 27\r\nStatus      : Request membership\r\nLink        : http:\/\/powershellgroup.org\/strasbourg\r\n\r\nName        : Basel PowerShell User Group\r\nDescription : Basel PowerShell User Group\r\nContact     : stephanevg\r\nMemberCount : 26\r\nStatus      : Request membership\r\nLink        : http:\/\/powershellgroup.org\/basel\r\n\r\n...\r\n.Link\r\nGet-PSUserGroupDetail\r\nInvoke-Webrequest\r\n#&gt;\r\n[cmdletbinding()]\r\nParam()\r\n\r\n#define base URL\r\n[string]$URL = \"http:\/\/powershellgroup.org\/og\"\r\n\r\nwrite-Verbose \"Retrieving group data from $url\"\r\n\r\nTry {\r\n    $r = Invoke-WebRequest $url -ErrorAction Stop\r\n}\r\nCatch {\r\n    Throw $_.Exception.message\r\n}\r\n\r\nIf ($r) {\r\n    Write-Verbose \"Processing results\"\r\n    $c = $r.AllElements | group class -AsHashTable -AsString\r\n    #get total group count less one for the header\r\n    $count = ($c.'views-field views-field-description'.count)\r\n\r\n    Write-Verbose \"Found $($count -1) groups\"\r\n\r\n    #regular expression for parsing out the HREF link\r\n    [regex]$rx='&lt;A href=\"(?&lt;href&gt;\/\\S+)\"'\r\n\r\n    #enumerate entries, skipping the first one which is a header\r\n    for ($i = 1; $i -lt $count; $i++) {\r\n        $groupname = $c.'views-field views-field-title'[$i].innertext\r\n        #get link to the group page\r\n        $href = $rx.match($c.'views-field views-field-title'[$i].innerhtml).Groups[\"href\"].Value\r\n        $link = \"http:\/\/powershellgroup.org{0}\" -f $href\r\n\r\n        #write a custom object to the pipeline for each group\r\n        [pscustomobject]@{\r\n        Name = $groupname\r\n        Description = $c.'views-field views-field-description'[$i].InnerText\r\n        Contact = $c.'views-field views-field-name'[$i].innertext\r\n        MemberCount = $c.'views-field views-field-member-count'[$i].InnerText\r\n        Status = $c.'views-field views-field-subscribe'[$i].InnerText\r\n        Link = $Link\r\n        }\r\n    } #for\r\n\r\n} #if $r\r\n\r\n} #end function\r\n<\/pre>\n<p>The command doesn't take any parameters and simply returns high level information about each group.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe5.png\" alt=\"\" \/><\/p>\n<p>The pipelined object includes a link to the group's page which means you could try something like this:<\/p>\n<pre><code>get-psusergroup | out-gridview -title \"Select a group\" -PassThru | foreach { start $_.link}<\/code><\/pre>\n<p>All of the groups are sent to Out-GridView.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe6.png\" alt=\"\" \/><\/p>\n<p>Select one or more groups and each link should open in your browser. Now you have no excuse for not finding a PowerShell User Group. And if here isn't one near you, start it!<\/p>\n<p>I have some other interesting things on this topic, but I'll save those for another day. Enjoy!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The other day Don Jones tweeted about find a PowerShell user group. In case you didn&#8217;t know, just about every user group associated with PowerShell can be found online at http:\/\/powershellgroup.org. This is a terrific resource for finding a user group near you. Of course, Twitter being what it is someone joked about the lack&#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":"New Friday Fun: Get #PowerShell User Groups","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[271,4,8],"tags":[412,488,534,540],"class_list":["post-4368","post","type-post","status-publish","format-standard","hentry","category-friday-fun","category-powershell","category-scripting","tag-convertfrom-json","tag-invoke-webserviceproxy","tag-powershell","tag-scripting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Friday Fun: Get PowerShell User Groups &#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\/4368\/friday-fun-get-powershell-user-groups\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Friday Fun: Get PowerShell User Groups &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"The other day Don Jones tweeted about find a PowerShell user group. In case you didn&#039;t know, just about every user group associated with PowerShell can be found online at http:\/\/powershellgroup.org. This is a terrific resource for finding a user group near you. Of course, Twitter being what it is someone joked about the lack...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-10T17:40:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-04-10T17:47:08+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe1.png\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Friday Fun: Get PowerShell User Groups\",\"datePublished\":\"2015-04-10T17:40:46+00:00\",\"dateModified\":\"2015-04-10T17:47:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/\"},\"wordCount\":366,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/041015_1740_FridayFunGe1.png\",\"keywords\":[\"ConvertFrom-JSON\",\"Invoke-WebserviceProxy\",\"PowerShell\",\"Scripting\"],\"articleSection\":[\"Friday Fun\",\"PowerShell\",\"Scripting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/\",\"name\":\"Friday Fun: Get PowerShell User Groups &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/041015_1740_FridayFunGe1.png\",\"datePublished\":\"2015-04-10T17:40:46+00:00\",\"dateModified\":\"2015-04-10T17:47:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/041015_1740_FridayFunGe1.png\",\"contentUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/041015_1740_FridayFunGe1.png\",\"width\":675,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4368\\\/friday-fun-get-powershell-user-groups\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Friday Fun\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/friday-fun\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Friday Fun: Get PowerShell User Groups\"}]},{\"@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":"Friday Fun: Get PowerShell User Groups &#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\/4368\/friday-fun-get-powershell-user-groups\/","og_locale":"en_US","og_type":"article","og_title":"Friday Fun: Get PowerShell User Groups &#8226; The Lonely Administrator","og_description":"The other day Don Jones tweeted about find a PowerShell user group. In case you didn't know, just about every user group associated with PowerShell can be found online at http:\/\/powershellgroup.org. This is a terrific resource for finding a user group near you. Of course, Twitter being what it is someone joked about the lack...","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/","og_site_name":"The Lonely Administrator","article_published_time":"2015-04-10T17:40:46+00:00","article_modified_time":"2015-04-10T17:47:08+00:00","og_image":[{"url":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe1.png","type":"","width":"","height":""}],"author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Friday Fun: Get PowerShell User Groups","datePublished":"2015-04-10T17:40:46+00:00","dateModified":"2015-04-10T17:47:08+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/"},"wordCount":366,"commentCount":2,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/#primaryimage"},"thumbnailUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe1.png","keywords":["ConvertFrom-JSON","Invoke-WebserviceProxy","PowerShell","Scripting"],"articleSection":["Friday Fun","PowerShell","Scripting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/","name":"Friday Fun: Get PowerShell User Groups &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/#primaryimage"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/#primaryimage"},"thumbnailUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe1.png","datePublished":"2015-04-10T17:40:46+00:00","dateModified":"2015-04-10T17:47:08+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/#primaryimage","url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe1.png","contentUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/041015_1740_FridayFunGe1.png","width":675,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4368\/friday-fun-get-powershell-user-groups\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Friday Fun","item":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},{"@type":"ListItem","position":2,"name":"Friday Fun: Get PowerShell User Groups"}]},{"@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":3093,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/3093\/friday-fun-its-powershell-baby\/","url_meta":{"origin":4368,"position":0},"title":"Friday Fun: It&#8217;s PowerShell, Baby!","author":"Jeffery Hicks","date":"June 7, 2013","format":false,"excerpt":"The other day I received an email looking for guidance on using Invoke-Webrequest to pull data from a table on a web page. Specifically, he wanted to get the list of popular baby names from http:\/\/www.ssa.gov\/OACT\/babynames\/index.html. I gave him some quick tips but figured this would also be another teaching\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"baby","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/06\/baby-150x150.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3455,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/3455\/friday-fun-color-my-web\/","url_meta":{"origin":4368,"position":1},"title":"Friday Fun Color My Web","author":"Jeffery Hicks","date":"September 20, 2013","format":false,"excerpt":"Awhile ago I posted an article demonstrating using Invoke-Webrequest which is part of PowerShell 3.0. I used the page at Manning.com to display the Print and MEAP bestsellers. By the way, thanks to all of you who keep making PowerShell books popular. My original script simply wrote the results to\u2026","rel":"","context":"In &quot;Books&quot;","block_context":{"text":"Books","link":"https:\/\/jdhitsolutions.com\/blog\/category\/books\/"},"img":{"alt_text":"get-manningbestseller1","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/09\/get-manningbestseller1-1024x606.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/09\/get-manningbestseller1-1024x606.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/09\/get-manningbestseller1-1024x606.png?resize=525%2C300 1.5x"},"classes":[]},{"id":4342,"url":"https:\/\/jdhitsolutions.com\/blog\/friday-fun\/4342\/friday-fun-whats-my-ip\/","url_meta":{"origin":4368,"position":2},"title":"Friday Fun: What&#8217;s My IP","author":"Jeffery Hicks","date":"April 3, 2015","format":false,"excerpt":"Today's Friday Fun is a \"quick and dirty\" solution to the question, \"What is my public IP address?\" There are plenty of web sites and services you can visit that will display that piece of information. Naturally I want an easy way to get this in PowerShell. Recently I came\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"getmyip","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/getmyip-1024x345.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2841,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/2841\/friday-fun-get-beer-list\/","url_meta":{"origin":4368,"position":3},"title":"Friday Fun Get Beer List","author":"Jeffery Hicks","date":"March 8, 2013","format":false,"excerpt":"Well, another Friday and what goes better with it than beer. Of course I should mix in a little PowerShell as well. I live in the Syracuse, NY area and we have a terrific local brewery, Middle Ages Brewing Company. Not only is there a tasting room, but I can\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"beer","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/03\/beer-150x150.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3982,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3982\/friday-fun-read-me-a-story\/","url_meta":{"origin":4368,"position":4},"title":"Friday Fun: Read Me a Story","author":"Jeffery Hicks","date":"August 29, 2014","format":false,"excerpt":"A few days ago, someone on Twitter humorously lamented the fact that I expected them to actually read a blog post. After the laughter subsided I thought, well why does he have to? Perhaps I can make it easier for him. Plus I needed something fun for today. So I\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"announcer","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2012\/12\/announcer.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2639,"url":"https:\/\/jdhitsolutions.com\/blog\/friday-fun\/2639\/friday-fun-scraping-the-web-with-powershell-v3\/","url_meta":{"origin":4368,"position":5},"title":"Friday Fun: Scraping the Web with PowerShell v3","author":"Jeffery Hicks","date":"December 21, 2012","format":false,"excerpt":"We often think about PowerShell v3 as being a management tool for the cloud. One new PowerShell v3 cmdlet that lends substance to this idea is Invoke-WebRequest. This is a handy for retrieving data from a web site resource. It might be a public web site or something on your\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4368","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=4368"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4368\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}