<?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-VICommand does not work in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063226#M67068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the "get-command" cmdlets to get the commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use very specific commands use like get-command -verb &amp;lt;set&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure about the get-VIcommand, but I have gone through somewhere. But it never worked in Powercli 4.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2011 12:53:59 GMT</pubDate>
    <dc:creator>nava_thulasi39</dc:creator>
    <dc:date>2011-10-21T12:53:59Z</dc:date>
    <item>
      <title>Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063225#M67067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I go to run the command:&lt;/P&gt;&lt;P&gt;vSphere PowerCLI&amp;gt; Get-VICommand&lt;/P&gt;&lt;P&gt;The term 'Get-VICommand' is not recognized as the name of a cmdlet, function, script file, or operable program.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am on a system that I normally am not on. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 22:24:35 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063225#M67067</guid>
      <dc:creator>scbaca</dc:creator>
      <dc:date>2011-10-20T22:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063226#M67068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the "get-command" cmdlets to get the commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use very specific commands use like get-command -verb &amp;lt;set&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure about the get-VIcommand, but I have gone through somewhere. But it never worked in Powercli 4.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 12:53:59 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063226#M67068</guid>
      <dc:creator>nava_thulasi39</dc:creator>
      <dc:date>2011-10-21T12:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063227#M67069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can confirm that get-vicommand does work in powercli 5 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 13:16:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063227#M67069</guid>
      <dc:creator>Slingsh0t</dc:creator>
      <dc:date>2011-10-21T13:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063228#M67070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link active_link" href="https://communities.vmware.com/people/scbaca" id="jive-42287929,262,896,763,701,526"&gt;scbaca&lt;/A&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This "command" is a function that is defined in the environment initialization script that comes with PowerCLI.&amp;nbsp; The current default location for that script is "C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function &lt;SPAN style="font-family: 'courier new', courier;"&gt;Get-VICommand&lt;/SPAN&gt; uses the standard PowerShell &lt;SPAN style="font-family: 'courier new', courier;"&gt;Get-Command&lt;/SPAN&gt; cmdlet and adds the (deprecated) &lt;SPAN style="font-family: 'courier new', courier;"&gt;-PSSnapin&lt;/SPAN&gt; parameter to return just commands from the VMware PSSnapins that are added to the current PowerShell session.&amp;nbsp; (Microsoft has replaced &lt;SPAN style="font-family: 'courier new', courier;"&gt;-PSSnapin&lt;/SPAN&gt; with &lt;SPAN style="font-family: 'courier new', courier;"&gt;-Module&lt;/SPAN&gt;, it seems, but &lt;SPAN style="font-family: 'courier new', courier;"&gt;-PSSnapin&lt;/SPAN&gt; still works).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you could either run that environment initialization script to get the function defined so that you can use &lt;SPAN style="font-family: 'courier new', courier;"&gt;Get-VICommand&lt;/SPAN&gt;, or you could just use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #008000;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;# get all commands from VMware.* PSSnapins in current PowerShell session&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-weight: bold;"&gt;Get-Command&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-style: italic;"&gt;-Module&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; VMware.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;# get all commands from VMware.* PSSnapins in current PowerShell session with a noun matching VMHost*&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-weight: bold;"&gt;Get-Command&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-style: italic;"&gt;-Module&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; VMware.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-style: italic;"&gt;-Noun&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; VMHost&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the other standard params for &lt;SPAN style="font-family: 'courier new', courier;"&gt;Get-Command&lt;/SPAN&gt;, like &lt;SPAN style="font-family: 'courier new', courier;"&gt;-Name&lt;/SPAN&gt;, &lt;SPAN style="font-family: 'courier new', courier;"&gt;-Noun&lt;/SPAN&gt;, and &lt;SPAN style="font-family: 'courier new', courier;"&gt;-Verb&lt;/SPAN&gt;, to narrow your results.&amp;nbsp; Enjoy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 13:38:03 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063228#M67070</guid>
      <dc:creator>mattboren</dc:creator>
      <dc:date>2011-10-21T13:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063229#M67071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That will usually occur when the Snapin hasn't been initialized.&lt;/P&gt;&lt;P&gt;Try running this:&lt;/P&gt;&lt;P&gt;Add-PSsnapin VMware.VimAutomation.Core&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then run the get-vicommand cmdlet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 13:38:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063229#M67071</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2011-10-21T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063230#M67072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://communities.vmware.com/people/Zsoldier" id="jive-18810847,509,838,231,430,115" style="BEHAVIOR: none"&gt;Zsoldier&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we install Powercli, the snapin VMware.VimAutomation.Core will be added default. right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After installing Powercli -I have modified only Executionpolicy, I never added snapin in Powercli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am wrong, correct me. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 14:00:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063230#M67072</guid>
      <dc:creator>nava_thulasi39</dc:creator>
      <dc:date>2011-10-21T14:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063231#M67073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you're running Powercli and not just windows powershell from the powercli directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be sure you're running Powershell with the vmware cli snap in enter this in your start&amp;gt;run box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -psc "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -noe -c ". \"C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats for the 32bit version.&amp;nbsp; Or try running it from the powerCLI desktop icon.&amp;nbsp; You should see the vmware text load when the powershell window opens.&amp;nbsp; Then try running get-vicommand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 14:53:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063231#M67073</guid>
      <dc:creator>Slingsh0t</dc:creator>
      <dc:date>2011-10-21T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063232#M67074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get-command is working, but I have used "on another system" Get-VICommand" no problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 16:07:30 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063232#M67074</guid>
      <dc:creator>scbaca</dc:creator>
      <dc:date>2011-10-21T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063233#M67075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please run the following commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-command | ?{$_.ModuleName -like "*vmware*"}&lt;/P&gt;&lt;P&gt;Does this return anything?&amp;nbsp; If so, how many commands?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-powercliversion&lt;/P&gt;&lt;P&gt;What does this return?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 16:19:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063233#M67075</guid>
      <dc:creator>Slingsh0t</dc:creator>
      <dc:date>2011-10-21T16:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063234#M67076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After installing powercli, when you run the powerCLI shortcut, it calls a ps1 script that adds the snapin.&amp;nbsp; Running powershell.exe alone does not initialize the snapin by default, unless you've added it to your powershell profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason the get-vicommand is not working is likely these couple of things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Execution Policy not set to remotesigned (Set-ExecutionPolicy -RemoteSigned)&lt;/LI&gt;&lt;LI&gt;The Snap-In was not initialized (Add-PSsnapin VMware.VimAutomation.Core)&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 17:22:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063234#M67076</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2011-10-21T17:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063235#M67077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;# Set-ExecutionPolicy Unrestricted&lt;/P&gt;&lt;P&gt;and I tried running the command: # Add-Snapin....&lt;/P&gt;&lt;P&gt; and it said that the snap-in was already added.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 17:56:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063235#M67077</guid>
      <dc:creator>scbaca</dc:creator>
      <dc:date>2011-10-21T17:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063236#M67078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I counted 236 lines&lt;/P&gt;&lt;P&gt;and Get-PowerCLIVersion returns 4.1 build 264274&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 18:55:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063236#M67078</guid>
      <dc:creator>scbaca</dc:creator>
      <dc:date>2011-10-21T18:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VICommand does not work</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063237#M67079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Funny thing I restarted the window and it worked right after setting the ExecutionPolicy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 18:58:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VICommand-does-not-work/m-p/2063237#M67079</guid>
      <dc:creator>scbaca</dc:creator>
      <dc:date>2011-10-21T18:58:08Z</dc:date>
    </item>
  </channel>
</rss>

