nicholas1982
Hot Shot
Hot Shot

Remove Memory Limits On Guest VM's?

Jump to solution

Hi All,

I'm having a bit of trouble running this script, I'm using the latest version of vSphere 5.1 and PowerCLI

Get-Cluster "My Cluster" | Get-VM | Get-VMResourceConfiguration | where {$_.MemLimitMB -ne "-1"} | Set-VMResourceConfiguration -MemLimitMB $null

I get the following error:

Set-VMResourceConfiguration : 7/05/2013 5:44:08 PM    Set-VMResourceConfigurati

on        Permission to perform this operation was denied.

At line:1 char:139

+ Get-Cluster "My Cluster" | Get-VM | Get-VMResourceConfiguration |

where {$_.MemLimitMB -ne "-1"} | Set-VMResourceConfiguration <<<<  -MemLimitMB

$null

    + CategoryInfo          : NotSpecified: (:) [Set-VMResourceConfiguration],

    NoPermission

    + FullyQualifiedErrorId : Client20_VmServiceImpl_SetVMResourceConfiguratio

   n_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.SetVMResourceConfig

  uration

Nicholas VCP6
0 Kudos
1 Solution

Accepted Solutions
nicholas1982
Hot Shot
Hot Shot

Hi All,

Never mind, I just realized the user account used didn't have permissions the modify, it all works fine. Smiley Happy

Nicholas VCP6

View solution in original post

0 Kudos
1 Reply
nicholas1982
Hot Shot
Hot Shot

Hi All,

Never mind, I just realized the user account used didn't have permissions the modify, it all works fine. Smiley Happy

Nicholas VCP6

View solution in original post

0 Kudos