<?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: Is it possible to login to VM via powercli? in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706270#M93698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;you can store your credentials in a variable and use invoke-vmscript command to run it into multiple VMs, like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This will prompt the username/password dialog)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoke-VMScript -VM VM01 -ScriptText { commands } -GuestCredential (Get-Credential)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to use it on multiple servers, create some txt file with all vm names and use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$cred = Get-Credential&lt;/P&gt;&lt;P&gt;gc text.txt | % { Invoke-VMScript -VM $_ -ScriptText { commands } -GuestCredential&amp;nbsp; $cred }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: all machines must have VMWare tools installed for this to work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 14:14:44 GMT</pubDate>
    <dc:creator>rtunisi</dc:creator>
    <dc:date>2013-09-25T14:14:44Z</dc:date>
    <item>
      <title>Is it possible to login to VM via powercli?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706267#M93695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to run some scripts inside VM after start-VM , I need to login to VM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way is i can store my remote desktop credentials details as rdp file and invoke the .rdp file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any cmdlet available to login to Vm ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 09:39:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706267#M93695</guid>
      <dc:creator>samselvan</dc:creator>
      <dc:date>2013-09-25T09:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to login to VM via powercli?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706268#M93696</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;do you know the invoke-vmscript cmdlet?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.vmware.com/support/developer/PowerCLI/PowerCLI55/html/Invoke-VMScript.html"&gt;http://www.vmware.com/support/developer/PowerCLI/PowerCLI55/html/Invoke-VMScript.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 09:55:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706268#M93696</guid>
      <dc:creator>schepp</dc:creator>
      <dc:date>2013-09-25T09:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to login to VM via powercli?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706269#M93697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In PowerCLI 5.5 there is a new cmdlet Open-VMConsoleWindow that you can use to open the console of a virtual machine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 10:05:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706269#M93697</guid>
      <dc:creator>RvdNieuwendijk</dc:creator>
      <dc:date>2013-09-25T10:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to login to VM via powercli?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706270#M93698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;you can store your credentials in a variable and use invoke-vmscript command to run it into multiple VMs, like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This will prompt the username/password dialog)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoke-VMScript -VM VM01 -ScriptText { commands } -GuestCredential (Get-Credential)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to use it on multiple servers, create some txt file with all vm names and use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$cred = Get-Credential&lt;/P&gt;&lt;P&gt;gc text.txt | % { Invoke-VMScript -VM $_ -ScriptText { commands } -GuestCredential&amp;nbsp; $cred }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: all machines must have VMWare tools installed for this to work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 14:14:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Is-it-possible-to-login-to-VM-via-powercli/m-p/2706270#M93698</guid>
      <dc:creator>rtunisi</dc:creator>
      <dc:date>2013-09-25T14:14:44Z</dc:date>
    </item>
  </channel>
</rss>

