Domain joined

fixed the bug and tested when no internet was available and when no corpnet was available, but internet was working.
Why do you need this?