# Generate a background from a script

Generate a background from a script on Evotec with practical examples, usage guidance, and reusable project workflows.

External Project

PowerBGInfo

Generate support-ready Windows desktop and logon backgrounds from PowerShell data, charts, and topology.

[View on GitHub](https://github.com/EvotecIT/PowerBGInfo) [Product page](/products/powerbginfo/) [Visit Website](https://powerbginfo.com/) [Releases](https://github.com/EvotecIT/PowerBGInfo/releases) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PowerBGInfo)

Stars**325**

Forks**28**

Open issues**0**

PowerShell Gallery downloads**612914**

Release**v2.0.6**

Language: C# Updated: 2026-11-23

Curated Examples

Use PowerBGInfo to author endpoint background information in PowerShell.

This pattern is useful when endpoints need a visible inventory surface generated from local data.

It comes from the source example at `Examples/Run.BGInfo1.ps1`.

## When to use this pattern

- You need a generated endpoint information background.
- You want PowerShell control over what values appear.
- You need repeatable output for deployment or testing.

## Example

```powershell
Import-Module .\PowerBGInfo.psd1 -Force

New-BGInfo -MonitorIndex 0 {
    New-BGInfoValue -BuiltinValue HostName -Color Red -FontSize 20 -FontFamilyName 'Calibri'
    New-BGInfoValue -BuiltinValue FullUserName -Name 'User Name' -Color White
    New-BGInfoValue -BuiltinValue CpuName
    New-BGInfoValue -BuiltinValue RAMSize
} -FilePath "$PSScriptRoot\Samples\Background.jpg" `
  -ConfigurationDirectory "$PSScriptRoot\Output" `
  -WallpaperFit Center `
  -Target Both
```

## What this demonstrates

- building the layout in PowerShell
- using built-in system values
- separating source image and generated output

## Source

- [Run.BGInfo1.ps1](https://github.com/EvotecIT/PowerBGInfo/blob/v2-speedygonzales/Examples/Run.BGInfo1.ps1)

<!-- PowerForge markdown artifact sha256:DF319E78897B2A7C165DDA65748E92F789D31F6B8572D5630EE0419AB0CDF50A -->
