Loaner Laptop Cleanup

Loaner Laptop Cleanup returns the loan account on a shared Windows laptop to a consistent state before the device is lent out again.

Background

A shared loan laptop keeps traces of its previous user: browser sessions and saved sign-ins, Wi-Fi networks, temporary files and downloads. Cleaning each device by hand takes time and is easy to do inconsistently.

Approach

A guided installer asks for administrator approval, then lets you choose the loan account and configuration and review a settings overview before anything is installed. Cleanup covers Edge, Chrome and Firefox data, Wi-Fi profiles with configurable exceptions, temporary files and old downloads. It only runs as the selected account, and check mode and a ‑WhatIf preview show the planned steps without changing anything.

Result

Each run reports a status per step and exits with 0, 1 or 2 for success, failure or partial success. Saved reports leave out usernames, file names and Wi-Fi names, and a separate privacy document describes retention and access. 90 Pester tests and an integration test on a temporary Windows machine cover installation and reporting; closing real browsers, removing Wi-Fi profiles and resetting the firewall should still be checked on a test account before wider use.