GlobalProtect "The virtual adapter was not setup correctly"

When you try to connect with GlobalProtect you recieve the following error:
"The virtual adapter was not set up correctly due to a delay. GlobalProtect will try again soon. If the issue persists, try restarting your system" 
In the end the issue will never resolve it self and restarting doesn't work either.

This issue is caused by the WMI repository becoming  broken/corrupted and will need to be reset or rebuild

First thing to try:

  1. Open a command prompt as an administrator
  2. enter 
    1. winmgmt /resetrepository
  3. enter
    1. msinfo32
  4. If the new window displays information about the system, then the fix worked and GlobalProtect can be used again

if the above doesn't work, a rebuild is required

  1. Open a command prompt as an administrator
  2. Run
    1. net stop winmgmt
  3. Go to C:\Windows\System32\wbem and either remove or rename the Repository folder
  4. Back to command prompt, enter
    1. net start winmgmt
  5. enter
    1. cd C:\Windows\System32\wbem
  6. enter
    1. for /f %s in ('dir /b *.mof') do mofcomp %s
  7. enter
    1.  
    1. for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
  8. Enter 
    1. msinfo32
    and check if it displays system information now, if it does then the rebuild worked and GlobalProtect should work again