Remove the Desktop Cleanup Wizard
Supprimer l’Assistant Nettoyage du Bureau
Explanation
Prevents users from using the Desktop Cleanup Wizard.
If you enable this setting, the Desktop Cleanup wizard does not automatically run on a users workstation every 60 days. The user will also not be able to access the Desktop Cleanup Wizard.
If you disable this setting or do not configure it, the default behavior of the Desktop Clean Wizard running every 60 days occurs.
Note: When this setting is not enabled, users can run the Desktop Cleanup Wizard, or have it run automatically every 60 days from Display, by clicking the Desktop tab and then clicking the Customize Desktop button.
Empêche les utilisateurs d’utiliser l’Assistant Nettoyage du Bureau.
Si vous activez ce paramètre, l’Assistant Nettoyage du Bureau n’est pas automatiquement exécuté sur la station de travail des utilisateurs tous les 60 jours. L’utilisateur ne peut pas accéder à l’Assistant Nettoyage du Bureau.
Si vous désactivez ce paramètre ou ne le configurez pas, le comportement par défaut prévoyant l’exécution de l’Assistant Nettoyage du Bureau tous les 60 jours se produit.
Remarque : lorsque ce paramètre n’est pas activé, les utilisateurs peuvent exécuter l’Assistant Nettoyage du Bureau ou choisir de le faire exécuter automatiquement tous les 60 jours à partir de l’application Affichage du Panneau de configuration en cliquant sur l’onglet Bureau, puis sur le bouton Personnaliser le Bureau.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoDesktopCleanupWizard
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: Desktop/NoDesktopCleanupWizard
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoDesktopCleanupWizard' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: Desktop/NoDesktopCleanupWizard
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoDesktopCleanupWizard' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Desktop/NoDesktopCleanupWizard
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoDesktopCleanupWizard' -ErrorAction SilentlyContinue