VMware Cloud Community
gerf0727
Enthusiast
Enthusiast

How can I add a string in multiples vmx config files ?

Hello,

How can I add the following string svga.vramSize="16384000" inside multiple VM configuration files via PowerCLI ?

Thanks,

0 Kudos
3 Replies
LucD
Leadership
Leadership

Instead of doing this directly in the VMX file, you can use the method from ALan's post called Change VM Video Memory

At the bottom of the code you see a couple of examples on how to use the function.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
gerf0727
Enthusiast
Enthusiast

hmm, i will give it a shot. Is this 16384000 in bytes ?

0 Kudos
LucD
Leadership
Leadership

Yes, that is in bytes.

In PowerShell you can also say 16000KB


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos