TuRbii / chromegnome

Apps Script to powerwash, erase user data, or lock/unlock a chromebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChromeGnome

The name comes from the original implementation of this. I tossed an image of one of my WoW characters as the Google Form image which was a gnome warlock. screen41

This is a Google Apps Script to powerwash, erase user data, lock, or unlock a chromebook. This utilizes Admin SDK API directory_v1, with a Google Form and Apps Script. If you would like to use this, you should create a Google form matching the one I've shown here.

screen40

The script looks for the questions from the form, so make sure you have them typed exactly as shown, or edit the script to match your form.

      if (q == "Action") {
        switch (a) {
          case "Lock Device":
          case "Unlock Device":
            updateDevice(action[a], asset);
            break;
          default:
            issueCommand(action[a], asset);

Settings

Trigger settings: Choose which function to run - onSubmit

Which runs at deployment - Head

Select event source - From form

Select event type - On form submit

Make sure to click to add a service and choose the AdminDirectory SDK directory_v1.

About

Apps Script to powerwash, erase user data, or lock/unlock a chromebook


Languages

Language:JavaScript 100.0%