luckfade
Member
- Local time
- 9:24 AM
- Posts
- 8
- OS
- Windows 11
I am literally struggling mentally to how to fix this for days.
This is what I want to fix:
C:\Windows\System32>netsh wlan show interfaces
There is 1 interface on the system:
Network shell commands need location permission to access WLAN information. Turn on Location services on the Location page in Privacy & security settings.
Here is the URI for the Location page in the Settings app:
ms-settings
rivacy-location
To open the Location page in the Settings app, hold down the Ctrl key and select the link, or run the following command:
start ms-settings
rivacy-location
Or, to open the Location page from the Run dialog box, press Windows logo key + R, and then copy and paste the URI above.
Function WlanQueryInterface returns error 5:
Access is denied.
I have literally tried EVERYTHING I could. I am a privacy focused person so I keep my location always turned off but Microsoft suddenly decided that now the network shell would require location permissions to work. I have turned on location now from settings and it still doesn't work and gives me access is denied.
Other things I have tried:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v SensorPermissionState /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" /v Value /d "Allow" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" /v Value /d "Allow" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v DisableLocation /t REG_DWORD /d 0 /f
I am still getting the same error, please help.
This is what I want to fix:
C:\Windows\System32>netsh wlan show interfaces
There is 1 interface on the system:
Network shell commands need location permission to access WLAN information. Turn on Location services on the Location page in Privacy & security settings.
Here is the URI for the Location page in the Settings app:
ms-settings
To open the Location page in the Settings app, hold down the Ctrl key and select the link, or run the following command:
start ms-settings
Or, to open the Location page from the Run dialog box, press Windows logo key + R, and then copy and paste the URI above.
Function WlanQueryInterface returns error 5:
Access is denied.
I have literally tried EVERYTHING I could. I am a privacy focused person so I keep my location always turned off but Microsoft suddenly decided that now the network shell would require location permissions to work. I have turned on location now from settings and it still doesn't work and gives me access is denied.
Other things I have tried:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v SensorPermissionState /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" /v Value /d "Allow" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" /v Value /d "Allow" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v DisableLocation /t REG_DWORD /d 0 /f
I am still getting the same error, please help.
- Windows Build/Version
- 25H2 (OS Build 26200.8037)
My Computer
At a glance
Windows 11
- OS
- Windows 11







