Windows 11, Dell Inspiron 5580, No internet access

I can’t connect to the internet but my laptop is the problem as other devices can easily get connected. I tried all the methods including updating my drivers and others but I encountered several issues while trying out the solutions found. In my CMD even as an admin I can’t flush the dns as it says failed during execution, I also can’t start WLAN Autoconfig as its say something with dependencies and I had put it Automatic. I can’t enable my wifi in control panel as it says enables but stays disabled. I’m stuck here it’s been a week and I’m out of my depth here. I would appreciate any kind of help