none
"Edit" VMCX file using Powershell and WMI APIs

    Question

  • I have a customer who's new to this.  We know by now VMCX files can't be edited directly.  Could someone share examples on how to use PS and WMI APIs to achieve the same effect?  Thanks!
    Friday, March 31, 2017 12:44 AM

Answers

  • Hi Sir,

    The .vmcx file name extension indicates a binary file. Editing .vmcx or .vmrs files isn't supported. 

    I only found the reading method :

    http://windowsitpro.com/hyper-v/reading-binary-vmcx-file-windows-2016-hyper-v

    As for the write , you may try to use VM configuration commands (such as , set-vmxxxxx ,add-vmxxxx) to achieve that :

    https://technet.microsoft.com/en-us/itpro/powershell/windows/hyper-v/hyper-v?f=255&MSPPError=-2147217396

     

    Hope it is helpful to you .

    Best Regards,

    Elton


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, March 31, 2017 7:20 AM
    Moderator