<?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 Looking for a script to remove VMs (Not delete) in Horizon Desktops and Apps</title>
    <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462676#M11085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the subject says - I'm looking for a script to remove vms from Horizon View Mgmt.&lt;/P&gt;&lt;P&gt;After much research I've hit a brick wall as the PowerCLI does nto have this cmdlet so I need an alternate way of doing this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 16:19:24 GMT</pubDate>
    <dc:creator>Lyghtnin</dc:creator>
    <dc:date>2018-04-05T16:19:24Z</dc:date>
    <item>
      <title>Looking for a script to remove VMs (Not delete)</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462676#M11085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the subject says - I'm looking for a script to remove vms from Horizon View Mgmt.&lt;/P&gt;&lt;P&gt;After much research I've hit a brick wall as the PowerCLI does nto have this cmdlet so I need an alternate way of doing this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 16:19:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462676#M11085</guid>
      <dc:creator>Lyghtnin</dc:creator>
      <dc:date>2018-04-05T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a script to remove VMs (Not delete)</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462677#M11086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please explain what you want to do. You don’t want to delete a Vm from Horizon but you want to remove it. Does that mean you still want to keep the VM but remove it from being managed by Horizon?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 05:04:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462677#M11086</guid>
      <dc:creator>jrodsguitar</dc:creator>
      <dc:date>2018-04-06T05:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a script to remove VMs (Not delete)</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462678#M11087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Horizon View Management Console is just managing the desktops IN vCenter. I want to remove the desktop from the Horizon View pool in the management console but &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; delete it from vCenter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason - Users have a full clone and when they leave the company we want to be able to retain the desktop for 45 days in vCenter (powered off) but not have it listed in the Horizon View Pool any longer. We currently have it automated to mark custom attributes in the VM and power it off and moved to a specific folder in vCenter, we just need to be able to remove it from Horizon with an automated process/script to complete the task. (We do not have vRO/vRA).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:55:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462678#M11087</guid>
      <dc:creator>Lyghtnin</dc:creator>
      <dc:date>2018-04-06T14:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a script to remove VMs (Not delete)</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462679#M11088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think one way to do this is to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Clone existing VM to new VM&lt;/LI&gt;&lt;LI&gt;Remove / Delete original VM from Horizon&lt;/LI&gt;&lt;LI&gt;Remove Horizon Agent from new cloned VM.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you&amp;nbsp; are already using automation, you could probably incorporate some of the code from my remove-HVMachine function to accomplish step 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ironically you will end up deleting VM. At least the original &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://get-cj.com/2018/04/07/delete-vmware-horizon-machine-using-powercli-horizon-api/" title="https://get-cj.com/2018/04/07/delete-vmware-horizon-machine-using-powercli-horizon-api/"&gt;https://get-cj.com/2018/04/07/delete-vmware-horizon-machine-using-powercli-horizon-api/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very straight forward to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="text-align: Left; font-family: Segoe UI; font-style: normal; font-weight: normal; font-size: 12; color: #000000;"&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 16;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;remove-HVMachine&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-cred&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$cred&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-viewserver&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$viewserver&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-machine&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$machine &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2018 19:44:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462679#M11088</guid>
      <dc:creator>jrodsguitar</dc:creator>
      <dc:date>2018-04-07T19:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a script to remove VMs (Not delete)</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462680#M11089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are your desktops provisioned?&amp;nbsp; Manual, Linked Clones etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you looked at ADSIEDIT to do this - depending on how desktops are provisioned, you may have to change Pool sizes etc so they are not recreated etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 08:31:56 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Looking-for-a-script-to-remove-VMs-Not-delete/m-p/462680#M11089</guid>
      <dc:creator>butlpau02</dc:creator>
      <dc:date>2019-07-09T08:31:56Z</dc:date>
    </item>
  </channel>
</rss>

