Impedisci l'accesso alle unità da Risorse del computer: valore del Registro di sistema NoViewOnDriveUtenteHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

ID criterio
NoViewOnDrive
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

NoViewOnDrive

REG_DWORDUtente
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Scegliere una delle seguenti combinazioni
Opzioni
VoceValore memorizzato
Limita solo unità A e B3
Limita solo unità C4
Limita solo unità D8
Limita solo unità A, B e C7
Limita solo unità A, B, C e D15
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
"NoViewOnDrive"=dword:00000003
; Limita solo unità C
"NoViewOnDrive"=dword:00000004
; Limita solo unità D
"NoViewOnDrive"=dword:00000008
; Limita solo unità A, B e C
"NoViewOnDrive"=dword:00000007
; Limita solo unità A, B, C e D
"NoViewOnDrive"=dword:0000000f
; Limita tutte le unità
"NoViewOnDrive"=dword:03ffffff
; Non limitare le unità
"NoViewOnDrive"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Limita solo unità A e B
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 3 /f
:: Limita solo unità C
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 4 /f
:: Limita solo unità D
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 8 /f
:: Limita solo unità A, B e C
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 7 /f
:: Limita solo unità A, B, C e D
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 15 /f
:: Limita tutte le unità
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 67108863 /f
:: Non limitare le unità
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /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 'NoViewOnDrive' -PropertyType DWord -Value 3 -Force | Out-Null
# Limita solo unità C
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 4 -Force | Out-Null
# Limita solo unità D
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -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 'NoViewOnDrive' -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 'NoViewOnDrive' -PropertyType DWord -Value 15 -Force | Out-Null
# Limita tutte le unità
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 67108863 -Force | Out-Null
# Non limitare le unità
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 0 -Force | Out-Null