A PowerShell script to help quickly diagnose and set up a Windows computer with driver updates and diagnostics right after installation.
- Install drivers using the PSWindowsUpdate module.
- Generate and view the Battery Report using the
powercfg /batteryreport
command.
Be sure to configure the Wi-Fi settings in the XML file so that the script has access to the internet when running after installation.
If in the OOBE (Out-Of-Box Experience), press Shift + F10 to open a Command Prompt.
Run PowerShell as an Administrator: powershell
Once connected to the internet, run the following command:
irm win.refurb.sh | iex
No .iso modifications required. Just create an autounattend.xml
with
You can generate one using this site (schneegans.de) or use this preset I made
Attach one of the autounattend.xml
files to the root of your Windows install USB.
If you are using Ventoy, make sure to assign it in the Auto Install section of the VentoyPlugon for Windows.
Once the installation has finished and rebooted, you will be connected to the Wi-Fi network automatically, and will begin to run the script.