# Iru laptop refresh with CDW orders script tool

It finds every Mac in Iru that's due for a refresh, picks each person's new model from your hardware standard and, once someone approves, orders each replacement from CDW.

[Book a demo](/demo) · [See the library](/library)

## More like this

- [Quarterly laptop refresh check automation](/library/automations/quarterly-laptop-refresh-check)
- [Quarterly laptop refresh runbook](/library/runbooks/quarterly-laptop-refresh)
- [Revivn device return runbook](/library/runbooks/revivn-asset-retrieval)
- [Jamf new Mac enrollment check script tool](/library/script-tools/jamf-new-mac-enrollment-check)
- [Risotto and Iru](/integrations/iru)
- [How script tools work](/product/script-tools)
- [The full library](/library)

## Frequently asked questions

### What does the Iru laptop refresh script tool need?

An Iru API token that can list devices, saved as IRU_API_TOKEN, and a subscription key for the Customers product in CDW's developer portal, saved as CDW_SUBSCRIPTION_KEY. Replace acme.api.kandji.io in the code with your Iru API URL, and the CDW customer ID with the one your CDW account team registered. Fill in the hardware table from your standard: the model, CDW item number and price for each role. It reads each person's title, department and home address from their profile in your identity provider, so those need to be kept current from your HR system.

### Why does it run twice?

Ordering laptops spends money, so the order step is behind an input that's off by default. The [Quarterly laptop refresh check automation](/library/automations/quarterly-laptop-refresh-check) runs it first, with ordering off and no emails, so it checks every Mac and only reports who is due, the Mac each person has now, the model they get and the total. The automation opens a ticket with that list for the [Quarterly laptop refresh runbook](/library/runbooks/quarterly-laptop-refresh), which gets one approval for the batch, runs the script tool again with ordering on and those people's emails, then sends Revivn boxes for the old Macs.

### Is the Iru laptop refresh script tool one of Risotto's templates?

No. We wrote it for this library from what script tools can do today. Ask Risotto's Assistant for a script tool like it, and it writes one for your device management, your reseller and your hardware standard.

Source: https://www.tryrisotto.com/library/script-tools/iru-cdw-laptop-refresh
