Failed to properly shut down NVML: GPU access blocked by the operating system

In my cases, the nvidia-smi only worked when exec from Windows Terminal as Admin.

Windows 11 22H2 22621.819
WSL2 5.15.74.2-microsoft-standard-WSL2
Nvidia driver 472.12
Cuda 11.7.0