Category filter

Script to set Wallpaper on Windows

Hexnode UEM automates the execution of proactive IT tasks on Windows 10/11 with the help of
custom scripts
. For example, you can create Batch file scripts or PowerShell scripts to perform necessary operations, which can be executed on the devices remotely from the Hexnode console.

This doc helps you create custom scripts to change the desktop wallpaper on Windows devices.

Disclaimer:

The Sample Scripts provided below are adapted from third-party Open-Source sites.

PowerShell script to set the wallpaper

Ensure the wallpaper image exists on the device by the specified name at the designated path. Since the script works on this image, its unavailability can cause the action to fail. Also, it requires a restart action for the changes to be reflected on the device.

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository