<?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: Running PowerCLi commands from a remote server. Some work but some dont. in vSphere Update Manager PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706012#M687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect it might be opening the console under the local system account on the remote machine.&lt;/P&gt;&lt;P&gt;You will not see the browser that way.&lt;/P&gt;&lt;P&gt;Can you check with Get-Process if the browser is running ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try to run the remote PowerCLI cmdlets under a different account by using&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: #ff4500;"&gt;&lt;SPAN&gt;$rSession&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;New-PSSession&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;-Credential&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;$credential&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Invoke-Command&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;-Session&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;$rSession&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I'm not sure if that will actually show the console in the browser in the session.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2014 06:41:14 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2014-10-23T06:41:14Z</dc:date>
    <item>
      <title>Running PowerCLi commands from a remote server. Some work but some dont.</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706009#M684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Two examples of accessing PowerCLI cmdlets from a remote machine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;Works&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;invoke-command&amp;nbsp; &lt;SPAN style="; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;EM&gt;-ComputerName&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; blah &lt;/SPAN&gt;&lt;SPAN style="; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;EM&gt;-Scriptblock&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; {&lt;/SPAN&gt;&lt;SPAN style="; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;add-pssnapin&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: Courier New;"&gt;VMware.VimAutomation.Core&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;; Connect-VIServer -Server myVC -WarningAction SilentlyContinue}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;invoke-command&amp;nbsp; &lt;SPAN style="; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;EM&gt;-ComputerName&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; blah &lt;/SPAN&gt;&lt;SPAN style="; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;EM&gt;-Scriptblock&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; {&lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;add-pssnapin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: Courier New;"&gt;VMware.VimAutomation.Core&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;; Connect-VIServer -Server myVC -WarningAction SilentlyContinue; get-vm} | &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: Courier New;"&gt;Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;Does not work&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;STRONG&gt;invoke-command &lt;SPAN style="; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;EM&gt;-ComputerName&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; blah &lt;/SPAN&gt;&lt;SPAN style="; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;EM&gt;-Scriptblock&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; {&lt;/SPAN&gt;&lt;SPAN style="; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;add-pssnapin&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: Courier New;"&gt;VMware.VimAutomation.Core&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; Open-VMConsoleWindow My VM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 21:20:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706009#M684</guid>
      <dc:creator>georgep</dc:creator>
      <dc:date>2014-10-22T21:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Running PowerCLi commands from a remote server. Some work but some dont.</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706010#M685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure you can even open a console on a remote station like this.&lt;/P&gt;&lt;P&gt;Under which session would the browser be opened ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to check, did you also specify the correct 32-bit browser through Set-PowerCLICOnfiguration on the remote station ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 21:28:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706010#M685</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-10-22T21:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Running PowerCLi commands from a remote server. Some work but some dont.</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706011#M686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi LucD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The remote machine&amp;nbsp; Blah that has PowerCLi installed does use&amp;nbsp; a 32-bit browser. If I run the Open-VMConsoleWindow&amp;nbsp; locally on it, it&amp;nbsp; loads IE 9 and opens the console window to the VM fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this from a remote machine to the one above it doesn't error but just returns saying completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Invoke-Command &lt;/SPAN&gt;&lt;EM style=": ; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;-ComputerName&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: Courier New;"&gt;Blah&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;-Scriptblock&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; {&lt;/SPAN&gt;&lt;STRONG style=": ; color: #5f9ea0; font-size: 10pt; font-family: Courier New;"&gt;add-pssnapin&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: Courier New;"&gt;VMware.VimAutomation.Core&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;; Connect-VIServer -Server MyVC -WarningAction SilentlyContinue; Open-VMConsoleWindow MyVM} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Watching the task manager on both machines doesn't show a browser trying to load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;So getting access to a VM consoles without PowerCLI installed locally might not seem possible. So another approach I am looking at might be to use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vmware-vmrc.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example when run from machine Blah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect-VIServer = MyVC&lt;/P&gt;&lt;P&gt;$vm = Get-VM MyVM&lt;/P&gt;&lt;P&gt;$gvm = Get-View $vm.id&lt;/P&gt;&lt;P&gt;$moref = $gvm.MoRef.Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$Parameters = " -h MyVC -M $moref"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-Process -FilePath "C:\Program Files (x86)\Common Files\VMware\VMware VMRC Plug-in\Internet Explorer\vmware-vmrc.exe" -ArgumentList $Parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to run this from a remote machine that doesn't have vmware-vmrc.exe installed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 21:58:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706011#M686</guid>
      <dc:creator>georgep</dc:creator>
      <dc:date>2014-10-22T21:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running PowerCLi commands from a remote server. Some work but some dont.</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706012#M687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect it might be opening the console under the local system account on the remote machine.&lt;/P&gt;&lt;P&gt;You will not see the browser that way.&lt;/P&gt;&lt;P&gt;Can you check with Get-Process if the browser is running ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try to run the remote PowerCLI cmdlets under a different account by using&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: #ff4500;"&gt;&lt;SPAN&gt;$rSession&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;New-PSSession&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;-Credential&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;$credential&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Invoke-Command&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;-Session&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;$rSession&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I'm not sure if that will actually show the console in the browser in the session.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 06:41:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Running-PowerCLi-commands-from-a-remote-server-Some-work-but/m-p/2706012#M687</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-10-23T06:41:14Z</dc:date>
    </item>
  </channel>
</rss>

