Update-Drivers-Win10-Powershell
Powershell Script to Update Drivers in Windows 10
Base for this project was script from StackExchange. The problem was it works only on Windows 7. I thought it would be easy to adjust but it turns out it requires a lot of testing.
So after testing and experimenting I get this script.
Edit: New update!
Log feature added to script and fix for problem with some errors. I added also timers.
This script:
-
Starts with checking if terminal is runing with administrator priviledge. If it is not it propmts notification about requirement.
-
Install and Import Windows Powershell Update Module
-
Add ServiceID for Windows Update
-
Start Service wuauserv
-
Search and list all missing Drivers
-
Download the Drivers from Microsoft
-
Check if the Drivers are all downloaded and trigger the Installation
-
Pause and give the service time to update
-
Stop Windows Update Service
Roadmap / Plans
- Next stage is to add logging feature to be able to see all details about preupdate and post update drivers. [
✔ ] - Another feature I would like to add is measurements to count time spent on downloading and installing. [
✔ ] - I think also it would be nice to have good error hadling [partialy done]
References:
[1] https://superuser.com/questions/1243011/how-to-automatically-update-all-devices-in-device-manager
[3] https://www.tenforums.com/tutorials/76207-update-upgrade-windows-10-using-powershell.html