Skip to content

A powershell script to restart a driver easily, and a batch file to run the script in one click.

License

Notifications You must be signed in to change notification settings

Surfingnet/Automated-driver-restart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automated-driver-restart

A powershell script to restart a driver easily, and a batch file to run the script in one click.

Instructions

How to get a driver ID:

  1. Open a powershell terminal as admin.

  2. Execute the following command:

Get-PnpDevice | Format-Table -Property FriendlyName,InstanceId

Note

You can copy the command here then right clic in the terminal to paste it.
If the IDs do not fit in the window (they are shortened) simply resize the terminal to make it wider, then run the command again

  1. Copy the ID that's on the right side of the driver you want to restart

Note

To copy from the terminal, simply left clic and drag the cursor over what you want to copy, as if you only wanted to select the text.

Example ID: PCI\VEN_8086&DEV_15F1&SUBSYS_E0001342&REV_03\12D23DFFFFD491F300

How to set the driver ID in the script:

  1. Paste it in the ps1 file at the first line. (keep the quotation marks)

How to use:

  1. Execute the bat file or double-clic on a shortcut to it. Done! If you wanted you could instead execute the ps1 script from a powershell terminal with admin rights.

About

A powershell script to restart a driver easily, and a batch file to run the script in one click.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published