# 1. Tentukan path gambar Anda di sini $ImagePath = "D:\Wallpaper\lockscreen.jpg" # Cek apakah file gambar ada if (Test-Path $ImagePath) { # 2. Mengatur Registry untuk Lockscreen $RegistryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP" # Buat key jika belum ada if (-not (Test-Path $RegistryPath)) { New-Item -Path $RegistryPath -Force | Out-Null } # Set nilai Registry untuk gambar Lockscreen Set-ItemProperty -Path $RegistryPath -Name "LockScreenImagePath" -Value $ImagePath Set-ItemProperty -Path $RegistryPath -Name "LockScreenImageUrl" -Value $ImagePath Set-ItemProperty -Path $RegistryPath -Name "LockScreenImageStatus" -Value 1 Write-Host "Berhasil! Gambar Lockscreen telah diatur ke: $ImagePath" -ForegroundColor Green Write-Host "Silakan tekan Win + L untuk mengecek hasilnya." -ForegroundColor Cyan } else { Write-Host "Error: File gambar tidak ditemukan di $ImagePath" -ForegroundColor Red }