Hi,
My router is pretty far from the RPI2 and every time I have/need to restart it I have to run a Lan cable across the house inorder for the WiFi to work.
Please give us more infos what the exact problem is.
Is it possible to restart the RPI2 and get the wifi to load with it without the need for it to be wired first?
This should work out of the box then the wifi is configured via UI.
Frank