Impedir o acesso a unidades de Meu Computador: valor do Registro NoViewOnDriveUsuárioHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
- ID da política
- NoViewOnDrive
- Escopo
- Configuração do Usuário
- Compatível com
- Windows 2000 ou posterior
- Fonte
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
- Categoria
- Componentes do Windows › Explorador de Arquivos
Registro
NoViewOnDrive
REG_DWORDUsuário- Valor habilitado
- Depende do valor da opção
- Elemento
- Selecionar uma das seguintes combinações
| Item | Valor armazenado |
|---|---|
| Restringir apenas unidades A e B | 3 |
| Restringir apenas a unidade C | 4 |
| Restringir apenas a unidade D | 8 |
| Restringir apenas unidades A, B e C | 7 |
| Restringir apenas unidades A, B, C e D | 15 |
| Restringir todas as unidades | 67108863 |
| Não restringir unidades | 0 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] ; Opções (use apenas uma) ; Restringir apenas unidades A e B "NoViewOnDrive"=dword:00000003 ; Restringir apenas a unidade C "NoViewOnDrive"=dword:00000004 ; Restringir apenas a unidade D "NoViewOnDrive"=dword:00000008 ; Restringir apenas unidades A, B e C "NoViewOnDrive"=dword:00000007 ; Restringir apenas unidades A, B, C e D "NoViewOnDrive"=dword:0000000f ; Restringir todas as unidades "NoViewOnDrive"=dword:03ffffff ; Não restringir unidades "NoViewOnDrive"=dword:00000000
CMD
:: Opções (use apenas uma) :: Restringir apenas unidades A e B reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 3 /f :: Restringir apenas a unidade C reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 4 /f :: Restringir apenas a unidade D reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 8 /f :: Restringir apenas unidades A, B e C reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 7 /f :: Restringir apenas unidades A, B, C e D reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 15 /f :: Restringir todas as unidades reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 67108863 /f :: Não restringir unidades reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewOnDrive" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null # Opções (use apenas uma) # Restringir apenas unidades A e B New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 3 -Force | Out-Null # Restringir apenas a unidade C New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 4 -Force | Out-Null # Restringir apenas a unidade D New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 8 -Force | Out-Null # Restringir apenas unidades A, B e C New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 7 -Force | Out-Null # Restringir apenas unidades A, B, C e D New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 15 -Force | Out-Null # Restringir todas as unidades New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 67108863 -Force | Out-Null # Não restringir unidades New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoViewOnDrive' -PropertyType DWord -Value 0 -Force | Out-Null