Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 229915

Re: To power on the Vm by comparing the hard disk file Name in excel

$
0
0

Hi,

 

Am getting below error

 

Get-HardDisk : Cannot validate argument on parameter 'VM'. The argument is

null. Provide a valid value for the argument, and then try running the command

again.

 

At C:\users\test\Desktop\test.ps1:11 char:25

+    if((Get-HardDisk -VM $_ | %{$hdNames -contains $_.FileName}) -notc ...

+                         ~~

    + CategoryInfo          : InvalidData: (:) [Get-HardDisk], ParameterBindin

   gValidationException

    + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutom

   ation.ViCore.Cmdlets.Commands.VirtualDevice.GetHardDisk


Viewing all articles
Browse latest Browse all 229915

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>