Quantcast
Viewing all articles
Browse latest Browse all 224018

Re: Set Memory Reservation & Limit For List Of VMs

If i remove the foreach i get an error message (See below). My script seems to work fine. I tried it on 5 vms this morning.

 

Get-VM : Cannot validate argument on parameter 'Name'. The argument is null or

empty. Supply an argument that is not null or empty and then try the command ag

ain.

At C:\Users\baptisec_pc\Desktop\VDI\PowerCLI Scripts\VMMemory2.ps1:2 char:13

+ Get-VM -Name <<<<   $_ |

    + CategoryInfo          : InvalidData: (:) [Get-VM], ParameterBindingValid

   ationException

    + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutom

   ation.ViCore.Cmdlets.Commands.GetVM


Viewing all articles
Browse latest Browse all 224018

Trending Articles



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