So I’m creating a script that builds a VM for you, imports the NetBIOS name & MAC address into SCCM, adds it to a specific collection, and then powers on the VM. If you have a mandatory OS Deployment for that collection, you don’t have to do anything but sit back and watch (given your Task Sequence is fully automated).
It prompts you for vCenter name, VM name, cpu, ram, description, disk size, queries vcenter for clusters, networks, datastores (sorted by free space), and verifies with you before building…
I’m excited & pleased that it’s actually working. It’s currently proprietary to my work environment, but I will try to strip all that out and let you change what needs to be changed to use it where you like.
Happy Scripting!!!
Hello – Has anyone use this script and modify for physical server box instead of VM? I would like to collect inputs (domain name (we have multiple domains), computer name, and OS) and build the OS based on these information.
Thank you.
I have not, but I’m sure it could be done fairly easily. You’d need to input the MAC address as well (or SMBIOS GUID), though, or else SCCM won’t have record of the server.
Hey Luke,
Did you ever post this PS script? I don’t see anywhere to download a copy.
Would like to take a look and see if we can get something along these lines working in our environment. Currently booting vm’s with PXE and selecting Task Sequence to run and providing computer name. Would like to run the script, provide the prompted info and walk away for awhile until the task sequence completes.
thanks
Geemail
I did, it’s here: http://thephuck.com/scripts/automated-deployment-script-builds-vm-registers-in-sccm/
It’s pretty old, I can’t guarantee it’ll still work, though.