Windows Management Instrumentation Problem causes the Virtual Adapter was not Set up Correctly Due to a Delay Error
36116
Created On 09/21/22 21:05 PM - Last Modified 07/23/24 05:58 AM
Symptom
GP App reports an error of "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." after the user enter his credential.
Environment
- Any GlobalProtect App version.
- Windows OS.
- Connect Method is Always-on or On-Demand
- Existing GlobalProtect infrastructure configured
Cause
The Root cause of this error is WMI corrupted, to confirm this root cause we can run the following commands on Windows CMD with administrative access to collect system name, domain and info:
wmic computersystem get name
wmic computersystem get domain
systeminfo
If the output of these commands is "ERROR: Invalid class" OR "ERROR: Description = Invalid namespace" it is confirmation that Windows WMI has a problem and GP client is not able to access the virtual interface that is needed to complete tunnel creation.
Resolution
So the problem is in Windows OS and WMI part specifically, the solution would preferably come from Windows to rebuild the WMI repository, but here is some steps to help to rebuilt it. detail is on this link
• Disable and stop the winmgmt service using the below commands:
sc config winmgmt start= disabled
net stop winmgmt /y
• Remove or rename C:\Windows\System32\wbem\repository
• Enable and start the winmgmt service
sc config winmgmt start= auto
net start winmgmt
• Open Command Prompt as Administrator
• Run the following commands:
cd C:\Windows\System32\wbem\
for /f %s in ('dir /b *.mof') do mofcomp %s
NOTE: This will take a minute or so to complete.
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
Additional Information
Windows Management Instrumentation (WMI) is a set of specifications from Microsoft for consolidating the management of devices and applications in a network from Windows computing systems. WMI provides users with information about the status of local or remote computer systems.