Pour retirer l'icône Bibliothèques du bureau
Après avoir lancé GPMC.msc et créé/modifier une gpo,
positionnez ces 2 clés de registre
Avec une commande Reg Add cela donne ceci :
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" /v "{031E4825-7B94-4dc3-B131-E946B44C8DD5}" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{031E4825-7B94-4dc3-B131-E946B44C8DD5}" /t REG_DWORD /d 1 /f
Lien vers le fichier : cliquez ici
Set-StrictMode -Version 2
# load required modules
Import-Module ActiveDirectory
Import-Module GroupPolicy
#define variables
$GPOName = 'GPO created by PowerShell'
$defaultNC = ( [ADSI]"LDAP://RootDSE" ).defaultNamingContext.Value
#$TargetOU = 'OU=Serveurs,' + $defaultNC
$TargetOU = $defaultNC
#create new GPO shell
#$GPO = New-GPO -Name $GPOName
#Pose d'éléments pour modifier des clés de registre par GPO
Set-GPPrefRegistryValue -Name $GPOName -Action Update -Context User -Key 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu' -Type DWord -ValueName '{031E4825-7B94-4dc3-B131-E946B44C8DD5}' -Value 1 | out-null
Set-GPPrefRegistryValue -Name $GPOName -Action Update -Context User -Key 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel' -Type DWord -ValueName '{031E4825-7B94-4dc3-B131-E946B44C8DD5}' -Value 1 | out-null
Lien vers le fichier : cliquez ici
Article(s) suivant(s)
Article(s) précédent(s)
Article(s) en relation(s)