Devices: Allowed to format and eject removable media: registry value AllocateDASDComputerHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
AllocateDASD
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Devices: Allowed to format and eject removable media
| Item | Stored value |
|---|---|
| Administrators | 0 |
| Administrators and Power Users | 1 |
| Administrators and Interactive Users | 2 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon] ; Options (use only one) ; Administrators "AllocateDASD"="0" ; Administrators and Power Users "AllocateDASD"="1" ; Administrators and Interactive Users "AllocateDASD"="2"
CMD
:: Options (use only one) :: Administrators reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AllocateDASD" /t REG_SZ /d 0 /f :: Administrators and Power Users reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AllocateDASD" /t REG_SZ /d 1 /f :: Administrators and Interactive Users reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AllocateDASD" /t REG_SZ /d 2 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Force | Out-Null # Options (use only one) # Administrators New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'AllocateDASD' -PropertyType String -Value '0' -Force | Out-Null # Administrators and Power Users New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'AllocateDASD' -PropertyType String -Value '1' -Force | Out-Null # Administrators and Interactive Users New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'AllocateDASD' -PropertyType String -Value '2' -Force | Out-Null