<?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>article How to create and use CredentialStoreItem in VMware PowerCLI Documents</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/How-to-create-and-use-CredentialStoreItem/ta-p/2787862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;$VIServer = "myserver"&lt;BR /&gt;$user = "mydomain\myuser"&lt;BR /&gt;$password = "**********"&lt;BR /&gt;$FilePath = "c:\users\myuser\desktop\mycred.xml"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Creates a new file with your credentials&lt;BR /&gt;New-VICredentialStoreItem -Host $VIServer -User $user -Password $password -File $FilePath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Get your credentials from file and keeps on a new variable&lt;BR /&gt;$cred = Get-VICredentialStoreItem -Host $VIServer -File $FilePath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Connects using the VICredentialStoreItem&lt;BR /&gt;Connect-VIServer -User $cred.User -Password $cred.Password -Server $VIServer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#To remove the credential File&lt;BR /&gt;Remove-Item -Path $FilePath -Force&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 16:13:49 GMT</pubDate>
    <dc:creator>GuilhermeAlves</dc:creator>
    <dc:date>2014-04-24T16:13:49Z</dc:date>
    <item>
      <title>How to create and use CredentialStoreItem</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/How-to-create-and-use-CredentialStoreItem/ta-p/2787862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;$VIServer = "myserver"&lt;BR /&gt;$user = "mydomain\myuser"&lt;BR /&gt;$password = "**********"&lt;BR /&gt;$FilePath = "c:\users\myuser\desktop\mycred.xml"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Creates a new file with your credentials&lt;BR /&gt;New-VICredentialStoreItem -Host $VIServer -User $user -Password $password -File $FilePath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Get your credentials from file and keeps on a new variable&lt;BR /&gt;$cred = Get-VICredentialStoreItem -Host $VIServer -File $FilePath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Connects using the VICredentialStoreItem&lt;BR /&gt;Connect-VIServer -User $cred.User -Password $cred.Password -Server $VIServer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#To remove the credential File&lt;BR /&gt;Remove-Item -Path $FilePath -Force&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 16:13:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/How-to-create-and-use-CredentialStoreItem/ta-p/2787862</guid>
      <dc:creator>GuilhermeAlves</dc:creator>
      <dc:date>2014-04-24T16:13:49Z</dc:date>
    </item>
  </channel>
</rss>

