Windows Management Instrumentation Problem causes the Virtual Adapter was not Set up Correctly Due to a Delay Error; GP App reports "The virtual adapter was not set up correctly due to a delay"
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 enters his credentials.
Environment
- PAN-OS Firewall configured with GlobalProtect Portal and Gateway
- GlobalProtect App
- Windows OS
Cause
The 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" is a generic error where PANG Virtual Adapter is not setup correctly. There could be multiple root causes.
One of the root causes is a Windows system with corrupted Windows Management Instrumentation (WMI) components.
To confirm the WMI corruption, we can run the following commands in 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 means that Windows WMI has a problem and the GP client is not able to access the virtual interface that is needed to complete tunnel creation.
Resolution
Please note that the problem is in the Windows WMI component and not with the GP App itself. There are different ways to fix the Windows WMI, please consult with Microsoft or engage your IT.
One of the ways to rebuild WMI is by following the steps below; details are in the Microsoft article: How to fix "Invalid Class" in Powershell
- Disable and stop the winmgmt service using the commands below:
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 and 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\%sAdditional 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.