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

Re: Set-VMRecourceConfiguration -MemLimitMB to The currently configured memory.

$
0
0

Hi John,

 

you can use the next PowerCLI script for the reverse approach:

 

Get-Datacenter -name "Target Datacenter" |

Get-VM  |

ForEach-Object {

  $VM = $_

  $VM | Get-VMResourceConfiguration |

  Where-Object {$_.MemLimitMB -eq -1} |

  Set-VMResourceConfiguration -MemLimitMB $VM.MemoryMB

}


Viewing all articles
Browse latest Browse all 201745

Trending Articles