Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Change the Desktop Background in Windows

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.

Method 1: Using the Graphical User Interface (GUI)

  1. Right-click on the Desktop: Right-click on an empty space on your desktop.
  2. Select "Personalize": From the context menu, select "Personalize."
  3. Choose Background: In the Settings window, select "Background" from the left-hand menu.
  4. Select Your Background: You can choose a picture, solid color, or slideshow. Click on "Browse" to select an image from your files.
  5. Apply Changes: Once you've made your selection, the background will change immediately.

Method 2: Using Command Prompt (CMD)

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.

  1. Open Command Prompt: Press Win + R, type cmd, and press Enter.
  2. Execute the Command: Use the following command to change the desktop background:
    reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "C:\Path\To\Your\Image.jpg" /f
  3. Refresh the Desktop: To apply the changes, you need to refresh the desktop:
    RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters

Method 3: Using PowerShell

PowerShell provides a more flexible and powerful way to change the desktop background.

  1. Open PowerShell: Press Win + X and select "Windows PowerShell" or "Windows PowerShell (Admin)."
  2. Execute the Script: Use the following PowerShell script to change the desktop background:
    $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.

Examples

Example 1: Changing Background via CMD

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

Example 2: Changing Background via PowerShell

$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

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.