VMware Cloud Community
ap250108
Contributor
Contributor

New-PSDrive command error

Hi

I have created a script to collect vmx file of each vm, using <![endif]><![if gte mso 9]><![endif]><![if gte mso 9]>

Cannot find drive. A drive with the name 'vmstores' does not

exist.

At :line:13 char:15

+ New-PSDrive &lt;&lt;&lt;&lt; -Name ds -PSProvider VimDatastore -Root '/'

-Location $ds

Reply
0 Kudos
21 Replies
ap250108
Contributor
Contributor

I don't get any error while starting PowerCLI. I have istalled PowerGUI and PowerCLI on a windows 2003 system, connecting to ESXi server through script (Connect-VIServer ESXiServerNAme -User .

Regards

Arabinda

Reply
0 Kudos
BastiaanvanH
Contributor
Contributor

You have exedentely removed the vmstore powershell drive. I had done the same. Reinstall PowerCLI to solve this.

PS C:\> get-psprovider vim*

Name                 Capabilities              Drives

----                 ------------              ------

VimDatastore         ShouldProcess             {vmstores, vmstore}

VimInventory         Filter                    {vis, vi}

Reply
0 Kudos