A PowerShell script to backup all factory drivers on a new Windows laptop before making any changes. Perfect for preserving your computer's original driver configuration for future restoration if needed.
When you buy a new laptop, it comes with factory-tested drivers specifically configured for your hardware. This script creates a complete backup of those drivers before Windows Update or any other changes modify them. Think of it as a "snapshot" of your computer's pristine, out-of-the-box driver state.
- β Backs up ALL factory drivers - Graphics, WiFi, audio, touchpad, Bluetooth, webcam, chipset, and more
- β User-friendly organization - Drivers are renamed with clear, readable folder names (e.g., "01_Display_adapters_Intel")
- β Progress indicators - Visual progress bar so you know it's working, not frozen
- β Complete documentation - Generates inventory reports and restoration instructions automatically
- β Easy restoration - Simple right-click install or Device Manager integration
- β
Automatic date stamping - Backups named by date (e.g.,
DriverBackup_Factory_20241204)
- Windows 10 or Windows 11 (64-bit)
- Administrator privileges (required to access system drivers)
- ~500MB-2GB free disk space (varies by number of drivers)
- 5-10 minutes of time
Run this script IMMEDIATELY after initial Windows setup, BEFORE running Windows Update!
- β Unbox laptop and complete Windows setup
- β Run this backup script (preserves factory state)
- β Copy backup to external storage/cloud
- β THEN run Windows Update
- If you update Windows first, you'll backup the updated drivers, not the original factory drivers
- Factory drivers are specifically tested by the manufacturer for your hardware
- This gives you a true "restore point" to the out-of-box configuration
- Click on
Backup-FactoryDrivers.ps1in this repository - Click the "Raw" button
- Press
Ctrl+Ato select all - Press
Ctrl+Cto copy
- Click the Start button
- Type
PowerShell - Right-click Windows PowerShell
- Select "Run as administrator"
- Click Yes when prompted
- Right-click in the PowerShell window to paste the script
- Press Enter to run
- Wait 4-6 minutes for completion
- Watch the progress bar - it will show you exactly where it's at!
The script creates a folder like: C:\DriverBackup_Factory_20241204
CRITICAL: Copy this entire folder to:
- β External USB drive (recommended)
- β Cloud storage (Google Drive, OneDrive, Dropbox)
- β Both for maximum safety!
The script backs up ALL hardware drivers including:
| Driver Type | Examples |
|---|---|
| Graphics | Intel/AMD/NVIDIA display drivers |
| Network | WiFi adapters, Ethernet, Bluetooth |
| Audio | Sound cards, speakers, microphone |
| Input Devices | Touchpad, keyboard, touchscreen |
| Storage | SSD/HDD controllers |
| Chipset | System management, USB controllers |
| Camera | Webcam drivers |
| Sensors | Accelerometer, ambient light sensor |
| Power | Battery management |
Typically 20-50+ driver packages depending on your hardware.
After running the script, you'll have an organized backup like this:
DriverBackup_Factory_20241204\
β
βββ π QUICK_REFERENCE.txt (Start here - lists all your drivers)
βββ π Driver_Inventory_Report.txt (Detailed searchable list)
βββ π README_RESTORE_INSTRUCTIONS.txt (How to restore drivers)
βββ π System_Information.txt (Your computer specs)
β
βββ π 01_Display_adapters_Intel (Graphics driver)
βββ π 02_Network_adapters_Realtek (WiFi driver)
βββ π 03_Sound_video_game_controllers_Realtek (Audio)
βββ π 04_HIDClass_Synaptics (Touchpad)
βββ π 05_Bluetooth_Intel
βββ ... (all other drivers with clear names)
No more cryptic "oem45.inf" files - everything is clearly labeled!
- Open the driver folder you need (e.g.,
02_Network_adapters_Realtek) - Find the
.inffile - Right-click it and select "Install"
- Follow any prompts
- Right-click Start β Device Manager
- Find the device with issues
- Right-click it β "Update driver"
- Choose "Browse my computer for drivers"
- Navigate to the specific driver folder
- Click Next
- Open Device Manager
- Right-click device β "Update driver"
- "Browse my computer" β "Let me pick from a list"
- Click "Have Disk"
- Browse to the driver folder and select the
.inffile
Full restoration instructions are included in the backup folder!
- You didn't open PowerShell as Admin
- Close PowerShell and reopen with "Run as administrator"
Run this command in PowerShell (Admin) first:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserThen run the backup script again.
- Check for the animated dots or progress bar - if you see them, it's working!
- Phase 1 (Export) takes 3-5 minutes and is the slowest part
- Be patient and let it complete
- Some drivers are built into Windows and don't get exported (this is normal)
- The script only backs up "third-party" hardware drivers
- This is exactly what you want - built-in Windows drivers reinstall automatically
- Typically 500MB - 2GB depending on your laptop
- Make sure you have enough space on your USB drive or cloud storage
- Primary backup: External USB drive (keep it safe!)
- Secondary backup: Cloud storage (Google Drive, OneDrive, Dropbox)
- Why both? USB can fail, cloud accounts can be lost - redundancy is key!
A: Yes! Works on any Windows 10 or 11 laptop (64-bit). The script adapts to whatever drivers your specific hardware has.
A: Yes, but you'll backup the current drivers, not the original factory drivers. Still useful, but not the same as preserving the factory state.
A: No, this only backs up hardware drivers. For a complete system backup, use Windows System Image or third-party backup software.
A: No! This is a one-time backup of your factory drivers. If you intentionally update drivers later, you might want to create a new backup, but the factory backup remains your "return to stock" option.
A: Technically yes, but it's better for each person to run the script on their own laptop. Driver packages can be large, and even the same model might have slightly different hardware revisions.
A: Open QUICK_REFERENCE.txt or Driver_Inventory_Report.txt and search (Ctrl+F) for keywords like "wifi", "audio", "graphics", "touchpad", etc. The folders are named clearly so you can also just browse them.
Remember: Backup your backup! Store it in multiple places - you never know when you'll need it.
Pro tip: Take a photo of your laptop's model number and serial number sticker and store it with your backup. Helpful for future reference!