Here's a PDQ Deploy package to enable Windows personalization settings:
# Enable-Personalization.ps1
# PowerShell script to allow users to change desktop background, lockscreen, and desktop color
# Set execution policy to allow script to run
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
# Define registry paths
$PersonalizationPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization"
$ControlPanelPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
$DesktopPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop"
# Create directories if they don't exist
if (!(Test-Path $PersonalizationPath)) {
New-Item -Path $PersonalizationPath -Force | Out-Null
}
# Allow changing desktop background
if (Test-Path "$PersonalizationPath\NoChangingWallpaper") {
Set-ItemProperty -Path $PersonalizationPath -Name "NoChangingWallpaper" -Value 0 -Type DWord
} else {
New-ItemProperty -Path $PersonalizationPath -Name "NoChangingWallpaper" -Value 0 -PropertyType DWord -Force
}
# Allow changing lock screen image
if (Test-Path "$PersonalizationPath\NoChangingLockScreen") {
Set-ItemProperty -Path $PersonalizationPath -Name "NoChangingLockScreen" -Value 0 -Type DWord
} else {
New-ItemProperty -Path $PersonalizationPath -Name "NoChangingLockScreen" -Value 0 -PropertyType DWord -Force
}
# Enable solid color desktop backgrounds
if (Test-Path "$PersonalizationPath\NoColorization") {
Set-ItemProperty -Path $PersonalizationPath -Name "NoColorization" -Value 0 -Type DWord
} else {
New-ItemProperty -Path $PersonalizationPath -Name "NoColorization" -Value 0 -PropertyType DWord -Force
}
# Remove restrictions in Control Panel
if (Test-Path "$ControlPanelPath\NoDispBackgroundPage") {
Remove-ItemProperty -Path $ControlPanelPath -Name "NoDispBackgroundPage" -Force
}
# Also check user-level policies
$UserPersonalization = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
if (!(Test-Path $UserPersonalization)) {
New-Item -Path $UserPersonalization -Force | Out-Null
}
Set-ItemProperty -Path $UserPersonalization -Name "ColorPrevalence" -Value 1 -Type DWord -Force
Write-Output "Personalization settings configured successfully"
To create the PDQ Deploy package:
- Save the script above as "Enable-Personalization.ps1"
- Open PDQ Deploy and click "New Package"
- Name it "Enable Windows Personalization"
- Add a PowerShell step
- Browse to the saved PS1 file
- Set parameters to:
-ExecutionPolicy Bypass -File "$(FileDir)\Enable-Personalization.ps1"
- Set "Run As" to "System"
- Save the package
This package will modify the registry settings that control these personalization options, allowing users to customize their desktop background, lock screen, and use solid colors.
Would you like me to explain or break down the code?