Modify description via script
Posted: 12. Apr 2013, 11:33
Hello guys,
is there a way to modify a VMs description via script?
There is no documented switch for vboxmanage and I aldera tried to modify with this poershell script, which adds a decristion node, but this does not semm to be enough.
any ideas how to solve this?
Best regards,
Peter
is there a way to modify a VMs description via script?
There is no documented switch for vboxmanage and I aldera tried to modify with this poershell script, which adds a decristion node, but this does not semm to be enough.
Code: Select all
[xml]$vminfo = Get-Content E:\VirtualBox\sccm2\sccm2.vbox
$mac = $vminfo.VirtualBox.Machine.Hardware.Network.FirstChild.MACAddress
[...] here is some code which returns $vmname
$e = $vminfo.CreateElement("Description")
$e.set_InnerText($vmname)
$vminfo.VirtualBox.Machine.AppendChild($e)
$vminfo.save("E:\VirtualBox\sccm2\sccm2.vbox")
Best regards,
Peter