Domain joined

fixed the bug and tested when no internet was available and when no corpnet was available, but internet was working.
If you set returnValue default to false, you can remove this assignment too.