/
Reset USB devices - Windows
Reset USB devices - Windows
Prerequisites:
You need to be able to run PowerShell as an administrator
You need to set your PowerShell execution policy to a permissive value or be able to bypass it:
PS> Set-ExecutionPolicy Unrestricted
Steps:
Launch Windows PowerShell as an Administrator, and wait for the
PS>
prompt to appearNavigate within PowerShell to the directory where the script lives:
PS> cd C:\my_path\ (enter)
Execute the script:
PS> .\restart-usb-devices.ps1 (enter)
Or: you can run the PowerShell script from the Command Prompt (cmd.exe
) like this:
powershell -noexit "& ""C:\my_path\restart-usb-devices.ps1""" (enter)
Script - restart-usb-devices.ps1
$deviceName="*VID_1495&*"
foreach ($dev in (Get-PnpDevice | Where-Object{$_.InstanceId -like $deviceName})) {
$dev.InstanceId
&"pnputil" /restart-device $dev.InstanceId
}
, multiple selections available,
Related content
STM32 Save SFI device certificate to file
STM32 Save SFI device certificate to file
More like this
Silicon Labs Secure Engine walk-through (Series 2 devices: EFR32xG21/22/23/24/25/27/28)
Silicon Labs Secure Engine walk-through (Series 2 devices: EFR32xG21/22/23/24/25/27/28)
More like this
Python Basic Demo (Windows FP-ARM)
Python Basic Demo (Windows FP-ARM)
More like this
Python Basic Demo (Raspberry Pi FP-430)
Python Basic Demo (Raspberry Pi FP-430)
More like this
VB Generic DLL code example
VB Generic DLL code example
More like this
VB Generic DLL code example
VB Generic DLL code example
More like this