Do not allow Sound Recorder to run
Ne pas autoriser l’exécution du Magnétophone
Explanation
Specifies whether Sound Recorder can run.
Sound Recorder is a feature of Microsoft Windows Vista that can be used to record sound from an audio input device where the recorded sound is encoded and saved as an audio file.
If you enable this policy setting, Sound Recorder will not run.
If you disable or do not configure this policy setting, Sound Recorder can be run.
Spécifie si le Magnétophone peut s’exécuter.
Le Magnétophone est une fonctionnalité de Microsoft Windows Vista, qui permet d’enregistrer des sons à partir d’un périphérique d’entrée audio, où le son recueilli est encodé et enregistré en tant que fichier audio.
Si vous activez ce paramètre de stratégie, le Magnétophone ne peut pas s’exécuter.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le Magnétophone peut s’exécuter.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SoundRecorder- Value name
Soundrec
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: SoundRec/Soundrec_DiableApplication_TitleText_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SoundRecorder'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Soundrec' -Value 1 -Type DWordDisable
# Disable: SoundRec/Soundrec_DiableApplication_TitleText_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SoundRecorder'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Soundrec' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": SoundRec/Soundrec_DiableApplication_TitleText_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SoundRecorder'
Remove-ItemProperty -Path $k -Name 'Soundrec' -ErrorAction SilentlyContinue