Nascondi le unità specificate in Risorse del computer: valore del Registro di sistema NoDrivesUtenteHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
- ID criterio
- NoDrives
- Ambito
- Configurazione utente
- Supportato in
- Almeno Windows 2000
- Origine
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
- Categoria
- Componenti di Windows › Esplora file
Registro
NoDrives
REG_DWORDUtenteHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Scegliere una delle seguenti combinazioni
| Voce | Valore memorizzato |
|---|---|
| Limita solo unità A e B | 3 |
| Limita solo unità C | 4 |
| Limita solo unità D | 8 |
| Limita solo unità A, B e C | 7 |
| Limita solo unità A, B, C e D | 15 |
| Limita tutte le unità | 67108863 |
| Non limitare le unità | 0 |
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] ; Opzioni (usarne solo una) ; Limita solo unità A e B "NoDrives"=dword:00000003 ; Limita solo unità C "NoDrives"=dword:00000004 ; Limita solo unità D "NoDrives"=dword:00000008 ; Limita solo unità A, B e C "NoDrives"=dword:00000007 ; Limita solo unità A, B, C e D "NoDrives"=dword:0000000f ; Limita tutte le unità "NoDrives"=dword:03ffffff ; Non limitare le unità "NoDrives"=dword:00000000
CMD
:: Opzioni (usarne solo una) :: Limita solo unità A e B reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t REG_DWORD /d 3 /f :: Limita solo unità C reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t REG_DWORD /d 4 /f :: Limita solo unità D reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t REG_DWORD /d 8 /f :: Limita solo unità A, B e C reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t REG_DWORD /d 7 /f :: Limita solo unità A, B, C e D reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t REG_DWORD /d 15 /f :: Limita tutte le unità reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t REG_DWORD /d 67108863 /f :: Non limitare le unità reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null # Opzioni (usarne solo una) # Limita solo unità A e B New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDrives' -PropertyType DWord -Value 3 -Force | Out-Null # Limita solo unità C New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDrives' -PropertyType DWord -Value 4 -Force | Out-Null # Limita solo unità D New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDrives' -PropertyType DWord -Value 8 -Force | Out-Null # Limita solo unità A, B e C New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDrives' -PropertyType DWord -Value 7 -Force | Out-Null # Limita solo unità A, B, C e D New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDrives' -PropertyType DWord -Value 15 -Force | Out-Null # Limita tutte le unità New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDrives' -PropertyType DWord -Value 67108863 -Force | Out-Null # Non limitare le unità New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDrives' -PropertyType DWord -Value 0 -Force | Out-Null