I had been using the code below for a console application in Visual Studio on Windows 8 to return the description and device ID of connected serial devices. I was using a mo
Your Windows 8 user profile probably included full administrator privileges while your Windows 10 user profile is a standard user. Because your Windows 10 user profile is a standard user, you must adjust some access permissions.
Run the Computer Management utility.
Go to Computer Management > Services and Applications > WMI Control.
Go to Actions > WMI Control > More Actions > Properties to open the WMI Control Properties window.
Under the Security tab, select Root, then press Security.
In the Security for Root dialog, select your username or the group you belong to. Select Allow for Permissions > Execute Methods. Click OK to close the dialog.
Repeat the previous step for CIMV2.
Try running again with these new permissions.