LockScreen BG Change
LockScreen Background Change
#Open the folder en Windows Explorer under C:\Users\USERNAME\AppData\Roaming\PolandRoXCentre
########################################################################################
$path = [Environment]::GetFolderPath(‘System’) + “\PolandRoXCentre”
If(!(test-path $path))
{
New-Item -ItemType Directory -Force -Path $path
}
########################################################################################
#Download the image from URL to path
########################################################################################
$url = “https://polandrox.org/wp-content/uploads/2022/01/PRX_Centre_Splash_Screen.png” #Image URL
$output = $path + “\PRXLockScreen.png”
Start-BitsTransfer -Source $url -Destination $output
########################################################################################
# Update the Lockscreen
########################################################################################
If(!(test-path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization\))
{
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization\ -Force
}
Set-ItemProperty -Force -path ‘HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization\’ -name LockScreenImage -value $output
rundll32.exe user32.dll, UpdatePerUserSystemParameters
########################################################################################