devmgmt.msc: This file does not have a program associated

When trying to open the Device Manager (Control Panel – System and Maintenance – System), the following error may occur: C:\Windows\System32\devmgmt.msc This file does not have a program associated with it for performing this action. Create an association in the Set Associations control panel. When you get this error, there’s probably something wrong with your …

Read moredevmgmt.msc: This file does not have a program associated