<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Horizion 7 Powercli : Delete Over-Provisioned Desktops CPA in Horizon Desktops and Apps</title>
    <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizion-7-Powercli-Delete-Over-Provisioned-Desktops-CPA/m-p/483091#M75818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Is there an easy way to create a Powershell script to delete excess floating linked clone desktops in the Pool that are greater than the minimum number of desktops?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Scenario:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a quick question please - my environment : Horizon 7 CPA, 2 Floating Linked Clone Pools Split 50/50 across 2 PODs - one Global Entitlement encompassing both Pools - refresh on logoff. &lt;/P&gt;&lt;P&gt;Lets say : Min Pool Size set to 500 and Max Pool size set to 1000 on each of the Pools.&amp;nbsp; So in theory, each Pool can burst up to 1000 desktops in the case of one of the PODs becoming inaccessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works well.&amp;nbsp; However, due to load-balancing (NAT-ing issue, separate topic), these Pools become loaded on one side and then the other from day to day.&amp;nbsp; Could be 800 Users connected in one Pool (and 200 in the other) one day, and then vice versa the next day.&amp;nbsp; As each of these Floating Pools grow in size - now say 800 in each, they are not reduced automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use the delete on logoff option for various reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easy way to create a Powershell script to delete excess (say 300) floating linked clone desktops in the Pool that are greater than the minimum number of desktops (500)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The criteria would be that these desktops would also need to be in a not "Connected" state as don't want to have Users affected when running the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd look to schedule this to run once or twice a week on off-peak times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million,&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2019 08:52:18 GMT</pubDate>
    <dc:creator>butlpau02</dc:creator>
    <dc:date>2019-07-09T08:52:18Z</dc:date>
    <item>
      <title>Horizion 7 Powercli : Delete Over-Provisioned Desktops CPA</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizion-7-Powercli-Delete-Over-Provisioned-Desktops-CPA/m-p/483091#M75818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Is there an easy way to create a Powershell script to delete excess floating linked clone desktops in the Pool that are greater than the minimum number of desktops?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Scenario:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a quick question please - my environment : Horizon 7 CPA, 2 Floating Linked Clone Pools Split 50/50 across 2 PODs - one Global Entitlement encompassing both Pools - refresh on logoff. &lt;/P&gt;&lt;P&gt;Lets say : Min Pool Size set to 500 and Max Pool size set to 1000 on each of the Pools.&amp;nbsp; So in theory, each Pool can burst up to 1000 desktops in the case of one of the PODs becoming inaccessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works well.&amp;nbsp; However, due to load-balancing (NAT-ing issue, separate topic), these Pools become loaded on one side and then the other from day to day.&amp;nbsp; Could be 800 Users connected in one Pool (and 200 in the other) one day, and then vice versa the next day.&amp;nbsp; As each of these Floating Pools grow in size - now say 800 in each, they are not reduced automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use the delete on logoff option for various reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easy way to create a Powershell script to delete excess (say 300) floating linked clone desktops in the Pool that are greater than the minimum number of desktops (500)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The criteria would be that these desktops would also need to be in a not "Connected" state as don't want to have Users affected when running the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd look to schedule this to run once or twice a week on off-peak times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million,&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 08:52:18 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizion-7-Powercli-Delete-Over-Provisioned-Desktops-CPA/m-p/483091#M75818</guid>
      <dc:creator>butlpau02</dc:creator>
      <dc:date>2019-07-09T08:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Horizion 7 Powercli : Delete Over-Provisioned Desktops CPA</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizion-7-Powercli-Delete-Over-Provisioned-Desktops-CPA/m-p/483092#M75819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haven't got the syntax correct yet, but am thinking along the lines of the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export $desktopsavailable into Array (Sort descending deleting highest desktop name/number first) (check if &amp;gt;1)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$ProvisioningDifference = OverProvisionedDesktops-MinDesktops (check if &amp;gt;1, could be =0, no over provisioning - in that case move on...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find out which is &lt;SPAN style="text-decoration: underline;"&gt;lower&lt;/SPAN&gt; - AvailableDesktops.count and ProvisioningDifference = $Max2Delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For [x] = 1 to $Max2Delete Do&lt;BR /&gt; delete-vm $desktopsavailable [x]&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move onto next Pool, - type = FLOATING&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 13:28:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizion-7-Powercli-Delete-Over-Provisioned-Desktops-CPA/m-p/483092#M75819</guid>
      <dc:creator>butlpau02</dc:creator>
      <dc:date>2019-07-19T13:28:24Z</dc:date>
    </item>
  </channel>
</rss>

