{"id":1493,"date":"2019-11-09T00:59:18","date_gmt":"2019-11-09T00:59:18","guid":{"rendered":"https:\/\/www.ciraltos.com\/?p=1493"},"modified":"2023-03-23T22:43:07","modified_gmt":"2023-03-24T03:43:07","slug":"remove-hostpool-script","status":"publish","type":"post","link":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/","title":{"rendered":"Remove-Hostpool Script"},"content":{"rendered":"\n<figure class=\"wp-block-image alignleft is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/04\/wvd.png\" alt=\"\" class=\"wp-image-1100\" width=\"115\" height=\"116\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/04\/wvd.png 153w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/04\/wvd-150x150.png 150w\" sizes=\"(max-width: 115px) 100vw, 115px\" \/><\/figure>\n\n\n\n<p>Over the past few months I&#8217;ve created and removed many Windows Virtual Desktop Host Pools for testing.  Removing a WVD Host Pool can be a little tedious so  I crated and shareing a script that walks through selecting and removing a Host Pool. GitHub link below.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>This PowerShell script will remove all users from Application Groups, remove session hosts and delete the pool.  It will not remove the VM&#8221;s from Azure or the server objects from AD.  <\/p>\n\n\n\n<p>Maybe the next version will do that.<\/p>\n\n\n\n<figure class=\"wp-block-image alignleft is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/10\/Octocat.png\" alt=\"\" class=\"wp-image-1454\" width=\"200\" height=\"166\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/github.com\/tsrob50\/WVD-Public\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">https:\/\/github.com\/tsrob50\/WVD-Public<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the past few months I&#8217;ve created and removed many Windows Virtual Desktop Host Pools for testing. Removing a WVD Host Pool can be a little tedious so I crated and shareing a script that walks through selecting and removing a Host Pool. GitHub link below.<\/p>\n","protected":false},"author":1,"featured_media":3808,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[2,391],"tags":[9,338,585,20,587,588,586,392,393],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Remove-Hostpool Script - ciraltos<\/title>\n<meta name=\"description\" content=\"I crated and shareing a script that walks through selecting and removing a WVD Host Pool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Remove-Hostpool Script - ciraltos\" \/>\n<meta property=\"og:description\" content=\"I crated and shareing a script that walks through selecting and removing a WVD Host Pool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/\" \/>\n<meta property=\"og:site_name\" content=\"ciraltos\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-09T00:59:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-24T03:43:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2021\/10\/wvd-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"153\" \/>\n\t<meta property=\"og:image:height\" content=\"154\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Travis Roberts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:site\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Travis Roberts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/\"},\"author\":{\"name\":\"Travis Roberts\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"headline\":\"Remove-Hostpool Script\",\"datePublished\":\"2019-11-09T00:59:18+00:00\",\"dateModified\":\"2023-03-24T03:43:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/\"},\"wordCount\":93,\"commentCount\":1,\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"keywords\":[\"Azure\",\"github\",\"Host Pool\",\"Powershell\",\"remove-rdsappgroup\",\"remove-rdshostpool\",\"remove-rdsshessionhost\",\"Windows Virtual Desktop\",\"WVD\"],\"articleSection\":[\"Azure\",\"Windows Virtual Desktop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/\",\"name\":\"Remove-Hostpool Script - ciraltos\",\"isPartOf\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\"},\"datePublished\":\"2019-11-09T00:59:18+00:00\",\"dateModified\":\"2023-03-24T03:43:07+00:00\",\"description\":\"I crated and shareing a script that walks through selecting and removing a WVD Host Pool.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.ciraltos.com\/staging2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Remove-Hostpool Script\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\",\"url\":\"http:\/\/www.ciraltos.com\/staging2\/\",\"name\":\"ciraltos\",\"description\":\"cloud, technology and trends\",\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\",\"name\":\"Travis Roberts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"contentUrl\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"width\":5657,\"height\":3563,\"caption\":\"Travis Roberts\"},\"logo\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.ciraltos.com\",\"https:\/\/twitter.com\/ciraltos\"],\"url\":\"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Remove-Hostpool Script - ciraltos","description":"I crated and shareing a script that walks through selecting and removing a WVD Host Pool.","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:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/","og_locale":"en_US","og_type":"article","og_title":"Remove-Hostpool Script - ciraltos","og_description":"I crated and shareing a script that walks through selecting and removing a WVD Host Pool.","og_url":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/","og_site_name":"ciraltos","article_published_time":"2019-11-09T00:59:18+00:00","article_modified_time":"2023-03-24T03:43:07+00:00","og_image":[{"width":153,"height":154,"url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2021\/10\/wvd-1.png","type":"image\/png"}],"author":"Travis Roberts","twitter_card":"summary_large_image","twitter_creator":"@ciraltos","twitter_site":"@ciraltos","twitter_misc":{"Written by":"Travis Roberts","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/#article","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/"},"author":{"name":"Travis Roberts","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"headline":"Remove-Hostpool Script","datePublished":"2019-11-09T00:59:18+00:00","dateModified":"2023-03-24T03:43:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/"},"wordCount":93,"commentCount":1,"publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"keywords":["Azure","github","Host Pool","Powershell","remove-rdsappgroup","remove-rdshostpool","remove-rdsshessionhost","Windows Virtual Desktop","WVD"],"articleSection":["Azure","Windows Virtual Desktop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/","url":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/","name":"Remove-Hostpool Script - ciraltos","isPartOf":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#website"},"datePublished":"2019-11-09T00:59:18+00:00","dateModified":"2023-03-24T03:43:07+00:00","description":"I crated and shareing a script that walks through selecting and removing a WVD Host Pool.","breadcrumb":{"@id":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ciraltos.com\/staging2\/remove-hostpool-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.ciraltos.com\/staging2\/"},{"@type":"ListItem","position":2,"name":"Remove-Hostpool Script"}]},{"@type":"WebSite","@id":"http:\/\/www.ciraltos.com\/staging2\/#website","url":"http:\/\/www.ciraltos.com\/staging2\/","name":"ciraltos","description":"cloud, technology and trends","publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a","name":"Travis Roberts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/","url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","contentUrl":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","width":5657,"height":3563,"caption":"Travis Roberts"},"logo":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.ciraltos.com","https:\/\/twitter.com\/ciraltos"],"url":"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/1493"}],"collection":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/comments?post=1493"}],"version-history":[{"count":3,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/1493\/revisions"}],"predecessor-version":[{"id":3985,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/1493\/revisions\/3985"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media\/3808"}],"wp:attachment":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/categories?post=1493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/tags?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}