Hi Akshay,
I'm Charles, an Independent advisor trying to help.
I understand that you want to activate the Wifi option when you have the red X in network connections if so, you can use the following command:
Start Windows >> CMD >> Run as Administrator >> Then, type the command >> netsh interface show interface >> It will show information related to the name of the interface, usually it is Wi-Fi, if that is the case, to turn it on, type this command in a new line >> netsh interface set interface Wi-Fi enabled, at that time it will be activated, now you can also create a shortcut. On a notepad type that command >> netsh interface set interface Wi-Fi enabled and save it with the extension .bat on the desktop, to activate you just have to run it. To deactivate it, apply exactly the same steps, and the command would be: netsh interface set interface Wi-Fi disabled
I hope it works for you and suits your request
Have a happy day
Best Regards,
Charles.