Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Changing the desktop background, or "plano de fundo do desktop," is a common task for personalizing your Windows environment. This article will guide you through various methods to change the desktop background using the graphical user interface (GUI), Command Prompt (CMD), and PowerShell.
To change the desktop background using CMD, you can modify the Windows Registry. Be cautious when editing the registry, as incorrect changes can cause system issues.
Win + R
, type cmd
, and press Enter.reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "C:\Path\To\Your\Image.jpg" /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
PowerShell provides a more flexible and powerful way to change the desktop background.
Win + X
and select "Windows PowerShell" or "Windows PowerShell (Admin)."$path = "C:\Path\To\Your\Image.jpg"
$key = "HKCU:\Control Panel\Desktop\"
Set-ItemProperty -Path $key -Name Wallpaper -Value $path
rundll32.exe user32.dll, UpdatePerUserSystemParameters
Replace "C:\Path\To\Your\Image.jpg"
with the path to your desired image file.
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "C:\Users\Public\Pictures\Sample.jpg" /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
$path = "C:\Users\Public\Pictures\Sample.jpg"
$key = "HKCU:\Control Panel\Desktop\"
Set-ItemProperty -Path $key -Name Wallpaper -Value $path
rundll32.exe user32.dll, UpdatePerUserSystemParameters