<?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 Re: Get-DesktopVM status from View pool Inventory tab with PowerCLI in Horizon Desktops and Apps</title>
    <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Get-DesktopVM-status-from-View-pool-Inventory-tab-with-PowerCLI/m-p/360253#M6871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get this as well.. I am trying to see when certain VM desktops are in a certain state and then remove them if they are.. the example I have is that we have Desktops that go into an "Already Used" state which from my searching seems to be an acknowledged status that is not considered a "bad" thing by VMWare but this causes problems in automatic pools as desktops in that state count against the spare desktop count therefore stopping users from getting in.. I am trying to write a script to counteract this by simply removing any desktops that enter this state as at that point they are useless.. we are already doing this manually but it is a pain..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2011 15:34:08 GMT</pubDate>
    <dc:creator>s0kud0</dc:creator>
    <dc:date>2011-09-02T15:34:08Z</dc:date>
    <item>
      <title>Get-DesktopVM status from View pool Inventory tab with PowerCLI</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Get-DesktopVM-status-from-View-pool-Inventory-tab-with-PowerCLI/m-p/360252#M6870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the status of the DesktopVM using PowerCLI (some other option, besides looking at it?). I'm referring to the status column one sees by navigating in View Admin: Left side menu -&amp;gt; Inventory -&amp;gt; Pools -&amp;gt; (select a pool) -&amp;gt; (select Inventory tab of the selected pool) next to the Task column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hint appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Blaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 09:00:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Get-DesktopVM-status-from-View-pool-Inventory-tab-with-PowerCLI/m-p/360252#M6870</guid>
      <dc:creator>kosovjanko</dc:creator>
      <dc:date>2011-05-31T09:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get-DesktopVM status from View pool Inventory tab with PowerCLI</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Get-DesktopVM-status-from-View-pool-Inventory-tab-with-PowerCLI/m-p/360253#M6871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get this as well.. I am trying to see when certain VM desktops are in a certain state and then remove them if they are.. the example I have is that we have Desktops that go into an "Already Used" state which from my searching seems to be an acknowledged status that is not considered a "bad" thing by VMWare but this causes problems in automatic pools as desktops in that state count against the spare desktop count therefore stopping users from getting in.. I am trying to write a script to counteract this by simply removing any desktops that enter this state as at that point they are useless.. we are already doing this manually but it is a pain..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 15:34:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Get-DesktopVM-status-from-View-pool-Inventory-tab-with-PowerCLI/m-p/360253#M6871</guid>
      <dc:creator>s0kud0</dc:creator>
      <dc:date>2011-09-02T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get-DesktopVM status from View pool Inventory tab with PowerCLI</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Get-DesktopVM-status-from-View-pool-Inventory-tab-with-PowerCLI/m-p/360254#M6872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The status of the desktop reported in Admin UI is combination of ADAM data and the latest volatile state reported by Agent to Broker.&lt;/P&gt;&lt;P&gt;There's a no Powershell equivalent to get the states. But you can query the ADAM to get the state.&lt;/P&gt;&lt;P&gt;1. Check if the Agent is responsive vdmadmin -A -d desktopname -m machinename -getversion&lt;/P&gt;&lt;P&gt;2. Check if the VM is READY and has zero sessions (use Get-DesktopVm cmdlet)&lt;/P&gt;&lt;P&gt;3. Machine entry in ADAM has the pae-dirtyfornewsessions attribute set to 1 for this desktop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 07:43:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Get-DesktopVM-status-from-View-pool-Inventory-tab-with-PowerCLI/m-p/360254#M6872</guid>
      <dc:creator>uday_s</dc:creator>
      <dc:date>2012-02-22T07:43:24Z</dc:date>
    </item>
  </channel>
</rss>

