Mass Powerwash/Deprovision with CSV

185 views
Skip to first unread message

Jason Jones

unread,
Jan 12, 2023, 12:21:54 PM1/12/23
to GAM for Google Workspace
Hello Friends! 

I am trying to Mass Powerwash/Deprovision from a csv file. Running into an issue where it says no devices match the query, but it finds the serial numbers from the CSV. If I run it against a single serial number without using CSV it works fine. Posting command and output below. THANK YOU!

gam csv TESTFILE.csv gam cros_sn "serial:~~Serial~~" issuecommand command remote_powerwash doit

2023-01-12T17:16:26.988+00:00,0/3,Using 3 processes...
Getting all CrOS Devices that match query (id:serial:SERIAL1), may take some time on a large Google Workspace Account...
Getting all CrOS Devices that match query (id:serial:SERIAL2), may take some time on a large Google Workspace Account...
Getting all CrOS Devices that match query (id:serial:SERIAL3), may take some time on a large Google Workspace Account...
Got 0 CrOS Devices...
Got 0 CrOS Devices that matched query (id:serial:SERIAL1)
Got 0 CrOS Devices...
Got 0 CrOS Devices that matched query (id:serial:SERIAL2)
Got 0 CrOS Devices...
Got 0 CrOS Devices that matched query (id:serial:SERIAL3)

Ross Scroggs

unread,
Jan 12, 2023, 12:30:46 PM1/12/23
to google-ap...@googlegroups.com
Jason,
 Drop the serial:, gam handles that for you
gam csv TESTFILE.csv gam cros_sn "~Serial" issuecommand command remote_powerwash doit

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/c2f7169e-f022-4bad-bd0e-370b1e762d6cn%40googlegroups.com.


--

Jason Jones

unread,
Jan 12, 2023, 12:42:20 PM1/12/23
to google-ap...@googlegroups.com
That got it! Thanks Ross! Any chance you know the reboot command I can do en masse? 

I get " This command (REBOOT) requires that the ChromeOS device be in Kiosk mode."



--
Image
Jason Jones
Systems Engineer
Five Star Technology Solutions

E:
jjo...@five-startech.com  P: 812-246-5257 
 
Company logo
facebook icon twitter icon linkedin icon instagram icon youtube icon 

Ross Scroggs

unread,
Jan 12, 2023, 12:53:18 PM1/12/23
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
Message has been deleted
0 new messages