<?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 Creating a PSDrive to browse your inventory in VMware PowerCLI Documents</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/Creating-a-PSDrive-to-browse-your-inventory/ta-p/2788324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(I can't take credit for this, I'm just formatting and publishing instructions received from VMware.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Establish a connection to your the server using the Connect-VIServer command: &lt;BR /&gt; 	&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;Connect-VIServer -Server&lt;/PRE&gt;&lt;P&gt;  &lt;BR /&gt; 	for example, &lt;BR /&gt; 	&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;Connect-VIServer -Server 192.168.10.10&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt; 	When prompted, provide the administrator's username and password to authenticate access on the server.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Get the root folder of the server: &lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;$root = Get-Folder -NoRecursion&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Create a PowerShell drive named VI, based on the server root folder. You can use the built-in New-psDrive cmdlet. &lt;BR /&gt; &lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;New-PSDrive -Location $root -Name vi -PSProvider VimInventory -Root '\'&lt;/PRE&gt;&lt;P&gt; &lt;BR /&gt; In this release, a single backslash is the required value for the -Root parameter.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Access the new drive by typing the following command: &lt;BR /&gt; &lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;cd vi:&lt;/PRE&gt;&lt;P&gt; &lt;BR /&gt; To list the drive content, use Get-ChildItem or its alias Dir.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Navigate through your server inventory using the cd command with the full path to the host. For a fictional VI inventory it may looks like the following: &lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;cd Folder01\DataCenter01\host\Web\LiveHost01&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Mar 2008 18:33:25 GMT</pubDate>
    <dc:creator>halr9000</dc:creator>
    <dc:date>2008-03-15T18:33:25Z</dc:date>
    <item>
      <title>Creating a PSDrive to browse your inventory</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/Creating-a-PSDrive-to-browse-your-inventory/ta-p/2788324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(I can't take credit for this, I'm just formatting and publishing instructions received from VMware.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Establish a connection to your the server using the Connect-VIServer command: &lt;BR /&gt; 	&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;Connect-VIServer -Server&lt;/PRE&gt;&lt;P&gt;  &lt;BR /&gt; 	for example, &lt;BR /&gt; 	&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;Connect-VIServer -Server 192.168.10.10&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt; 	When prompted, provide the administrator's username and password to authenticate access on the server.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Get the root folder of the server: &lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;$root = Get-Folder -NoRecursion&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Create a PowerShell drive named VI, based on the server root folder. You can use the built-in New-psDrive cmdlet. &lt;BR /&gt; &lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;New-PSDrive -Location $root -Name vi -PSProvider VimInventory -Root '\'&lt;/PRE&gt;&lt;P&gt; &lt;BR /&gt; In this release, a single backslash is the required value for the -Root parameter.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Access the new drive by typing the following command: &lt;BR /&gt; &lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;cd vi:&lt;/PRE&gt;&lt;P&gt; &lt;BR /&gt; To list the drive content, use Get-ChildItem or its alias Dir.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Navigate through your server inventory using the cd command with the full path to the host. For a fictional VI inventory it may looks like the following: &lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;cd Folder01\DataCenter01\host\Web\LiveHost01&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2008 18:33:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/Creating-a-PSDrive-to-browse-your-inventory/ta-p/2788324</guid>
      <dc:creator>halr9000</dc:creator>
      <dc:date>2008-03-15T18:33:25Z</dc:date>
    </item>
  </channel>
</rss>

