<?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 powershell command output include host name in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929568#M108351</link>
    <description>&lt;P&gt;when i use the fallowing command it outputs the results, but doesn't tell me what host the results happened on.&amp;nbsp; How can i modify the command to display the name of the server/host that pairs w/ the output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Get-VMhost | Get-AdvancedSetting -Name Syslog.global.logDirUnique | Set-AdvancedSetting -Value $True -Confirm:$False | ft -AutoSize&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GodfatherHTLF_0-1663597081033.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/97377iC0C66D526D288F7E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="GodfatherHTLF_0-1663597081033.png" alt="GodfatherHTLF_0-1663597081033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like another column that would state the server name.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 14:18:32 GMT</pubDate>
    <dc:creator>GodfatherHTLF</dc:creator>
    <dc:date>2022-09-19T14:18:32Z</dc:date>
    <item>
      <title>powershell command output include host name</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929568#M108351</link>
      <description>&lt;P&gt;when i use the fallowing command it outputs the results, but doesn't tell me what host the results happened on.&amp;nbsp; How can i modify the command to display the name of the server/host that pairs w/ the output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Get-VMhost | Get-AdvancedSetting -Name Syslog.global.logDirUnique | Set-AdvancedSetting -Value $True -Confirm:$False | ft -AutoSize&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GodfatherHTLF_0-1663597081033.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/97377iC0C66D526D288F7E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="GodfatherHTLF_0-1663597081033.png" alt="GodfatherHTLF_0-1663597081033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like another column that would state the server name.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:18:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929568#M108351</guid>
      <dc:creator>GodfatherHTLF</dc:creator>
      <dc:date>2022-09-19T14:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: powershell command output include host name</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929574#M108352</link>
      <description>&lt;P&gt;With a calculated property you can access the $_.Entity.Name value&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Get-VMHost |
Get-AdvancedSetting -Name Syslog.global.logDirUnique |
Set-AdvancedSetting -Value $True -Confirm:$False |
Select @{N='VMHost';E={$_.Entity.Name}},Name,Value,Type,Description |
Format-Table -AutoSize&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:32:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929574#M108352</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-09-19T14:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: powershell command output include host name</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929586#M108353</link>
      <description>&lt;P&gt;can we kind of break this down a bit, I'm kind of PowerShell dumb/noob.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the Get-VMHost command gets piped into the Get-AdvancedSettings command is that executed for each host like a for next loop, or are the values all cached in something like an array and executed all at once after all vmhosts are contacted?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 15:53:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929586#M108353</guid>
      <dc:creator>GodfatherHTLF</dc:creator>
      <dc:date>2022-09-19T15:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: powershell command output include host name</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929600#M108354</link>
      <description>&lt;P&gt;A PowerShell, and PowerCLI, cmdlet returns objects that are placed one-by-one in the pipeline.&lt;BR /&gt;That pipeline passes these objects, again one-by-one, to the next cmdlet in the chain.&lt;BR /&gt;&lt;BR /&gt;A calculated property on a Select-Object cmdlet allows you to specify an expression (in the E part).&lt;BR /&gt;That expression can refer to a nested property, or can even a complete code block.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:52:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/powershell-command-output-include-host-name/m-p/2929600#M108354</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-09-19T16:52:34Z</dc:date>
    </item>
  </channel>
</rss>

