Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

Wallpaper Scripts

Powershell Script to generate wallpapers for your network.

Based on @DJ-1701 s original scripts from https://github.com/DJ-1701/GenerateWallpaper.

Usage

  1. Download and save a copy of this repository or just wallpaper.ps1 to somewhere on your network. e.g. NETLOGON.
  2. Create an ini file for your wallpaper. See INI Files below.
  3. (Optional) Use GPP Files to deploy the script, ini files and wallpaper to the local machine e.g. C:\Wallpaper\wallpaper.ps1
  4. Configure a GPO to run the script with ini at the right time. E.g. a statup script of C:\Wallpaper\wallpaper.ps1 -ini C:\Wallpaper\boot.ini and a logon script of C:\Wallpaper\wallpaper.ps1 -ini C:\Wallpaper\logon.ini
  5. (Optional) If generating a lock screen use a GPO to force a specific lock screen.

INI Files

To configure the ouputted wallpaper you supply an ini file. The INI File is split into a few sections, files, header and footer.

There are 2 sample files of boot.ini and logon.ini which demo how to create a per-computer lock screen and a per-user wallpaper.

Files

File paths support 2 variables. @@ which is replaced with the PSScriptRoot, be aware that this variable is not consistent when running as a startup/logon script, and ## which is replaced with the temp directory.

PropertyFunction
inputImageThe path to the base image for the wallpaper.
outputImageThe path to save the wallpaper to.
applyToUserIf 1 the wallpaper is applied to the active user, best used with an output int he temp directory. If 0 the image is just saved.

Header

The header is displayed at the top of the image. There are a few variables that can be replaced in the text:

  • %user - The current username.
  • %computer - The Computers Hostname.
  • %time - The time at generation, time of logon or boot
PropertyFunction
textThe Text to display. # is replaced with a new line.
textSizeThe font size in pt to use
textRedThe 0-255 colour value to use for the texts red channel
textGreenThe 0-255 colour value to use for the texts green channel
textBlueThe 0-255 colour value to use for the texts blue channel
textAlphaThe 0-255 value to use for the alpha transparency of the text. 0 is transparent and 255 is opaque.
boxRedThe 0-255 colour value to use for the boxes red channel
boxGreenThe 0-255 colour value to use for the boxes green channel
boxBlueThe 0-255 colour value to use for the boxes blue channel
boxAlphaThe 0-255 value to use for the alpha transparency of the box. 0 is transparent and 255 is opaque.
alignmentleft, center or right for alignment on the screen.

Footer

Footer is uses a lot of headers values for box and text colour. Variables are the same as in the header.

PropertyFunction
textThe Text to display. # is replaced with a new line.
alignmentleft, center or right for alignment on the screen.

About

Powershell Scripts to generate wallpapers

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages