Empêcher le partage du Bureau
Prevent Desktop Sharing
Explication
Empêche les utilisateurs de partager l’ensemble du Bureau. Les utilisateurs peuvent toujours partager des applications individuelles.
Prevents users from sharing the whole desktop. They will still be able to share individual applications.
Registre
HKEY_CURRENT_USER\Software\Policies\Microsoft\Conferencing- Nom de la valeur
NoSharingDesktop
| État | Valeur écrite |
|---|---|
| Activé | non défini dans l'ADMX |
| Désactivé | non défini dans l'ADMX |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
L'ADMX ne précise pas la valeur écrite à l'activation ; l'éditeur GPO écrit habituellement REG_DWORD 1 (activé) / 0 (désactivé). Les commandes ci-dessous utilisent 1/0 par hypothèse.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : Conf/PreventSharingDesktop
$k = 'HKCU:\Software\Policies\Microsoft\Conferencing'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# L'ADMX ne précise pas la valeur écrite ; l'éditeur GPO écrit habituellement REG_DWORD 1 (activé) / 0 (désactivé)
Set-ItemProperty -Path $k -Name 'NoSharingDesktop' -Value 1 -Type DWord # valeur supposée (non définie dans l'ADMX)Désactiver
# Désactiver : Conf/PreventSharingDesktop
$k = 'HKCU:\Software\Policies\Microsoft\Conferencing'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# L'ADMX ne précise pas la valeur écrite ; l'éditeur GPO écrit habituellement REG_DWORD 1 (activé) / 0 (désactivé)
Set-ItemProperty -Path $k -Name 'NoSharingDesktop' -Value 0 -Type DWord # valeur supposée (non définie dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : Conf/PreventSharingDesktop
$k = 'HKCU:\Software\Policies\Microsoft\Conferencing'
Remove-ItemProperty -Path $k -Name 'NoSharingDesktop' -ErrorAction SilentlyContinue