Konum komut dosyasını kapat: kayıt defteri değeri DisableLocationScripting (HKCU LocationAndSensors)KullanıcıHKCU\Software\Policies\Microsoft\Windows\LocationAndSensors
- İlke Kimliği
- DisableLocationScripting_1
- Kapsam
- Kullanıcı Yapılandırması
- Desteklenen işletim sistemleri
- En az Windows Server 2008 R2 veya Windows 7
- Kaynak
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (sürüm 1.0)
- Kategori
- Windows Bileşenleri › Konum ve Algılayıcılar
Kayıt defteri
DisableLocationScripting
REG_DWORDKullanıcıHKCU\Software\Policies\Microsoft\Windows\LocationAndSensors Geçerli anahtar
- Etkin değeri
- 1
- Devre dışı değeri
- 0
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\LocationAndSensors] ; Seçenekler (yalnızca birini kullanın) ; Etkin "DisableLocationScripting"=dword:00000001 ; Devre Dışı "DisableLocationScripting"=dword:00000000
CMD
:: Seçenekler (yalnızca birini kullanın) :: Etkin reg add "HKCU\Software\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocationScripting" /t REG_DWORD /d 1 /f :: Devre Dışı reg add "HKCU\Software\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocationScripting" /t REG_DWORD /d 0 /f
PowerShell
# Ortak: anahtarı oluştur New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\LocationAndSensors' -Force | Out-Null # Seçenekler (yalnızca birini kullanın) # Etkin New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\LocationAndSensors' -Name 'DisableLocationScripting' -PropertyType DWord -Value 1 -Force | Out-Null # Devre Dışı New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\LocationAndSensors' -Name 'DisableLocationScripting' -PropertyType DWord -Value 0 -Force | Out-Null