I've been trying to deploy a batch script with VboxManage commands using SCCM/MECM, it runs the script but no changes are made. Here are the commands used:
Code: Select all
"c:\program files\oracle\virtualbox\VBoxManage.exe" registervm "C:\VMs\VM.vbox"
"c:\program files\oracle\virtualbox\VBoxManage.exe" storageattach "VM" --storagectl "SATA" --device 0 --port 0 --medium none
"c:\program files\oracle\virtualbox\VBoxManage.exe" modifyhd "c:\VMs\Programming.vdi" -type immutable -autoreset on
"c:\program files\oracle\virtualbox\VBoxManage.exe" storageattach "Programming" --storagectl "SATA" --device 0 --port 0 --type hdd --medium "c:\VMs\Programming.vdi"
"c:\program files\oracle\virtualbox\VBoxManage.exe" setextradata "VM" GUI/RestrictedCloseActions SaveState,PowerOff
"c:\program files\oracle\virtualbox\VBoxManage.exe" setextradata global GUI/Customizations noMenuBar,noStatusBar,noSelector
Any advise would be appreciated.