<?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: Need powercli script to list user account in ESXi servers in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590113#M87948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake, try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;$user&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"root"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;&lt;BR /&gt;$pswd&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"password"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;&lt;BR /&gt;Get-VMHost&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;%&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esx&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;Connect-VIServer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8B4513;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;-User&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;$user&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;-Password&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;$pswd&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;Get-VMHostAccount&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;-Server&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esx&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Select&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"Host"&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esx&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"Uid"&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8B4513;"&gt;ExtensionData&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Id&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Id&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"Name"&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8B4513;"&gt;ExtensionData&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;FullName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;Disconnect-VIServer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;-Server&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esx&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Confirm&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;$false&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2012 20:36:45 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2012-07-13T20:36:45Z</dc:date>
    <item>
      <title>Need powercli script to list user account in ESXi servers</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590107#M87942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need powercli script to list user account in ESXi servers &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 07:37:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590107#M87942</guid>
      <dc:creator>nareshunik</dc:creator>
      <dc:date>2012-07-13T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need powercli script to list user account in ESXi servers</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590108#M87943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the &lt;A href="http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-VMHostAccount.html"&gt;Get-VMHostAccount&lt;/A&gt; cmdlet to list user accounts in ESXi servers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 07:41:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590108#M87943</guid>
      <dc:creator>RvdNieuwendijk</dc:creator>
      <dc:date>2012-07-13T07:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need powercli script to list user account in ESXi servers</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590109#M87944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share me the complete script and also looking for output in this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UID&amp;nbsp;&amp;nbsp;&amp;nbsp; User&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the attachment. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 14:22:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590109#M87944</guid>
      <dc:creator>nareshunik</dc:creator>
      <dc:date>2012-07-13T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need powercli script to list user account in ESXi servers</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590110#M87945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;foreach($esx in Get-VMHost){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Get-VMHostAccount -VMHost $esx |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Select @{N="Host";E={$esx.Name}},Uid,Id,Name,Description&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 15:10:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590110#M87945</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2012-07-13T15:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need powercli script to list user account in ESXi servers</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590111#M87946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i get the below error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;PowerCLI C:\users\abcd\desktop&amp;gt; &amp;amp; '.\user list in esxi.ps1'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Get-VMHostAccount : A parameter cannot be found that matches parameter name 'VMHost'.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;At C:\users\xxxx\desktop\user list in esxi.ps1:2 char:29&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; Get-VMHostAccount -VMHost &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; $esx |&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidArgument: (:) [Get-VMHostAccount], ParameterBindingException&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; Host.GetVMHostAccount&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Get-VMHostAccount : A parameter cannot be found that matches parameter name 'VMHost'.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;At C:\users\xxxx\desktop\user list in esxi.ps1:2 char:29&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; Get-VMHostAccount -VMHost &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; $esx |&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidArgument: (:) [Get-VMHostAccount], ParameterBindingException&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; Host.GetVMHostAccount&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Get-VMHostAccount : A parameter cannot be found that matches parameter name 'VMHost'.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;At C:\users\xxxx\desktop\user list in esxi.ps1:2 char:29&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; Get-VMHostAccount -VMHost &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; $esx |&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidArgument: (:) [Get-VMHostAccount], ParameterBindingException&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; Host.GetVMHostAccount&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 19:17:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590111#M87946</guid>
      <dc:creator>nareshunik</dc:creator>
      <dc:date>2012-07-13T19:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need powercli script to list user account in ESXi servers</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590112#M87947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look , here is some script for you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.kasraeian.com/2012/04/using-vmware-powercli-002-user-accounts/"&gt;http://www.kasraeian.com/2012/04/using-vmware-powercli-002-user-accounts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="border-top: 1px dotted #ccc; padding-top: 10px; color: #5a1673; text-shadow: 2px 2px 2px # #CC3333; font-size: 100%;"&gt;Sakibpavel&amp;nbsp; &lt;IMG src="http://pictures.3utilities.com/" /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 19:23:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590112#M87947</guid>
      <dc:creator>sakibpavel</dc:creator>
      <dc:date>2012-07-13T19:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need powercli script to list user account in ESXi servers</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590113#M87948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake, try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;$user&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"root"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;&lt;BR /&gt;$pswd&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"password"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;&lt;BR /&gt;Get-VMHost&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;%&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esx&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;Connect-VIServer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8B4513;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;-User&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;$user&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;-Password&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;$pswd&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;Get-VMHostAccount&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;-Server&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esx&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Select&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"Host"&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esx&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"Uid"&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8B4513;"&gt;ExtensionData&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Id&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Id&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"Name"&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8B4513;"&gt;ExtensionData&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;FullName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;Disconnect-VIServer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0;"&gt;-Server&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esx&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;Confirm&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #0000FF;"&gt;$false&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 20:36:45 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2590113#M87948</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2012-07-13T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need powercli script to list user account in ESXi servers</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2894955#M105413</link>
      <description>&lt;P&gt;Connect-VIServer 1.1.1.1&lt;BR /&gt;$esxihosts = Get-VMHost&lt;BR /&gt;foreach ($esxihost in $esxihosts)&lt;BR /&gt;{&lt;BR /&gt;$esxcli = get-esxcli -VMHost $esxihost&lt;BR /&gt;$account = $esxcli.system.account.list()&lt;BR /&gt;$account | Select @{N="Host";E={$esxihost.Name}},UserId | Export-csv -append -Path C:\temp\acc.csv -NoTypeInformation&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 06:39:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Need-powercli-script-to-list-user-account-in-ESXi-servers/m-p/2894955#M105413</guid>
      <dc:creator>pankajkr06</dc:creator>
      <dc:date>2022-02-23T06:39:25Z</dc:date>
    </item>
  </channel>
</rss>

