Automating Chromebook setup/enrollment for mass deployment
At our K-12 district, we were trying to find a way to automate the process of setting up the wifi, agreeing to the EULA, enrolling and shutting down the Chromebooks. It doesn’t take a ton of time on a single Chromebook, but when you’re setting up 1,000+….it can be a tedious task.
I setup a script with the USB Rubber Ducky:
USB Rubber Ducky Deluxe
The script works by emulating key strokes. The script we’re using currently will setup our hidden wifi SSID, agree to the EULA, switch from sign on to enrollment, then sign in with our enrollment credentials. Once enrolled, it will shut down. This allows us to setup 20 at a time, and by the time we plug in a rubber ducky to the last one, the first one is done.
The script has some extra ‘delays’ in it, which is why it sits for a few seconds at times doing nothing. This is to ensure that it has a valid wifi connection, in case getting DHCP took a bit longer. I’m still testing the perfect timing, so I’ll probably lower the delay times and make this faster.
Here’s an issue – chromebooks should be identical to each other in terms of OS and initial setup. However, manufacturers and vendors are shipping old chromebooks that have been sitting on the shelves for months, and the OS it out of date. We had problems with some chromebooks not completing successfully (would say no internet connection, when there obviously was). Here is what we do now, and this works 100% of the time:
We created a USB restore stick using the Chromebook USB restore extension/tool. It will put the latest OS on a flash drive for us (just a regular drive), and we would use that to restore the chromebooks to the latest version.
Our process now – requires an extra step, but we think it’s great since they are on the latest version immediately, instead of us waiting for the end users to login, and our policies to slowly push the updates down. It ensures that every single Chromebook you setup and pass out to users will be up-to-date, and on the same version. It also eliminates the stupid internet connection issue that we were seeing:
- Insert restore USB into chromebook. Hit ESC+REFRESH+POWER at the same time.
- Machine will power on and boot into restore mode. Insert the USB drive when it prompts.
- After about 3-5 minutes, it will restore to the latest OS, and ask you remove the drive – which it will then auto-reboot.
- It will go to the setup screen like usual.
- Insert rubber ducky and let it do magic.
- Copy the code from this Pastebin page into Notepad or another text editor: http://pastebin.com/W3qW1khx
- Replace “yourssidhere” with your SSID name. Do not use quotes.
- Replace “yourSSIDpasswordhere” with your wireless password.
- Replace “[email protected]” with the email address that you use to enroll chromebooks.
- Replace “your enrollment password” with the password to the account in step 4.
- Copy all of the code and go to this website: https://ducktoolkit.com/encoder/
- Paste in your code, and generate the “inject.bin” file.
- Save the “inject.bin” file to your Rubber Ducky.
- Power on your chromebook and wait for it to get to the main screen.
- Stick in your Rubber Ducky, and it should start working.