From 0212beb2132d742ef64380f1ab429b6e0aeaed1d Mon Sep 17 00:00:00 2001 From: Jasen Samuels Date: Fri, 23 Jun 2017 13:13:54 -0400 Subject: [PATCH] Add files via upload --- vBox System Info Mod.bat | 137 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 vBox System Info Mod.bat diff --git a/vBox System Info Mod.bat b/vBox System Info Mod.bat new file mode 100644 index 0000000..831109d --- /dev/null +++ b/vBox System Info Mod.bat @@ -0,0 +1,137 @@ +@echo off +:init +echo Starting VirtualBox VM System Information Changer by JayMontana36... +IF NOT EXIST "C:\Program Files\Oracle\Virtualbox" goto vBoxNotFound +cd "C:\Program Files\Oracle\Virtualbox" +IF NOT EXIST "VBoxManage.exe" goto vBoxNotFound + +:ModifyVM +cls +echo VirtualBox VM System Information Changer by JayMontana36 v3 Final (Formly v2.1) +echo. +set /p vmID="Name of the VirtualBox VM to modify: " +set /p sysven="System Vendor (Dell, ASUS, Lenovo, ASRock, MSI, etc) to assign: " +set /p sysprod="Vendor Product (Optiplex 745, Rog 8, Optiplex GX620, etc): " +echo. +echo Does "%vmID%" run in BIOS mode or EFI mode? If you're unsure, enter BIOS. +echo Warning! Enter EFI ONLY IF YOU'RE POSITIVE "%vmID%" runs in EFI mode. +set /p mode="Enter either EFI or BIOS: " +echo. +echo Ready to modify System Information for vBox VM "%vmID%" in "%mode%" mode. +echo. +echo System info for VM "%vmID%" will be changed to "%sysven% %sysprod%" +echo. +echo Warning! Before continuing, please shut down any/all VirtualBox VMs! +echo You have been warned! +pause +goto ModifyVM%mode% + +:exit +start VirtualBox.exe +exit + +:ModifyVMbios +cls +echo VirtualBox VM System Information Changer by JayMontana36 +echo. +echo Closing any and all VirtualBox VM Windows... +taskkill /F /IM VirtualBox.exe +taskkill /F /IM VBoxSVC.exe +echo. +echo Modifying System Information for vBox "%vmID%" in BIOS Mode. +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "%sysven%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "%sysprod%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSKU" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" "9852bf98-b83c-49db-a8de-182c42c7226b" +echo ... +echo Modifying BIOS Information for vBox "%vmID%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "%sysven%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "9/9/2016" +echo ... +echo Modifying BaseBoard Information for vBox "%vmID%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVendor" "%sysven%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardProduct" "%sysprod%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVersion" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardAssetTag" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardLocInChass" "" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardBoardType" "10" +echo ... +echo Complete! +echo. +echo Successfully modified vBox System Information for vBox VM "%vmID%" in BIOS Mode! +pause +goto end + +:ModifyVMefi +cls +echo VirtualBox VM System Information Changer by JayMontana36 +echo. +echo Closing any and all VirtualBox VM Windows... +taskkill /F /IM VirtualBox.exe +taskkill /F /IM VBoxSVC.exe +echo. +echo Modifying System Information for vBox "%vmID%" in EFI Mode. +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiSystemVendor" "%sysven%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "%sysprod%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiSystemSKU" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiSystemFamily" "" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiSystemUuid" "9852bf98-b83c-49db-a8de-182c42c7226b" +echo ... +echo Modifying BIOS Information for vBox "%vmID%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBIOSVendor" "%sysven%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBIOSVersion" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBIOSReleaseDate" "9/9/2016" +echo ... +echo Modifying BaseBoard Information for vBox "%vmID%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBoardVendor" "%sysven%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "%sysprod%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBoardVersion" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBoardSerial" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBoardAssetTag" "string:%random%" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBoardLocInChass" "" +VBoxManage setextradata "%vmID%" "VBoxInternal/Devices/efi/0/Config/DmiBoardBoardType" "10" +echo ... +echo Complete! +echo. +echo Successfully modified vBox System Information for vBox VM "%vmID%" in EFI Mode! +pause +goto end + +:vBoxNotFound +cls +echo Failed to start VirtualBox VM System Information Changer by JayMontana36: +echo VirtualBox was not found on this system in the default install location. +echo Please install/reinstall VirtualBox in the default install location, or create a symlink/shortcut from the default install location. +pause +exit + +:end +cls +echo vBox VM System Information Modifier was created and maintained by JayMontana36; +echo vBox VM System Information Modifier was tested by JayMontana36 and I_Like_Yo. +echo. +echo Official Website: https://sites.google.com/site/jaymontana36jasen - Bookmark my website for easy access if you'd like, +echo as I will be updating it in the future with new scripts, content, and programs. +echo. +echo YouTube: https://www.youtube.com/channel/UCMbJVrfppFn5aAz5C50LoZA/videos - Please subscribe if you haven't already, as +echo I'll be uploading Tutorials and other content in the future. +echo. +echo So what do we do now? You may modify another VM by typing "modifyvm", you may view my website by typing "site", you may open my YouTube channel by typing "yt", or exit with "exit" (or of course, type something wrong to exit) +echo. +set /p sel="%username%@%computername%>" +goto %sel% + +:site +start https://sites.google.com/site/jaymontana36jasen +goto end + +:yt +start https://www.youtube.com/channel/UCMbJVrfppFn5aAz5C50LoZA/videos +goto end