Fix Network Adapter Code 31 error on Windows 11/10