At this point, once you've created the object and have saved it into
$mem, do this to see what properties are supported:
$mem|get-member -type property
It is possibly that $mem is $null due to a logic error.
I've also run into problems with Hyper-V. Make 100% sure you're running
a patched version, and not the beta packaged with Windows Server 2008.
Marco
--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com
One more question: what is the difference between VirtualQuantity,
Reservation and Limit, properties of Msvm_MemorySettingData that I can
change trough a powershell script?
"Marco Shaw [MVP]" <marco.shaw@NO_SPAMgmail.com> escribió en el mensaje
news:ubizp9jo...@TK2MSFTNGP05.phx.gbl...
These properties are listed here:
http://msdn.microsoft.com/en-us/library/cc136856(VS.85).aspx
Let us know if that helps.
I think you should go asking this in a Hyper-V forum:
http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/threads/