API Reference
Command
New-BGInfo
Creates a BGInfo overlay image and optionally applies it as wallpaper.
Remarks
Use the script block to emit label/value entries.
Examples
EXAMPLE 1
New-BGInfo -ConfigurationDirectory 'Value'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-BGInfo [-AllUsers] [-BackgroundColor <Object>] -BGInfoContent <ScriptBlock> [-ChartLayout <Manual|Stack>] [-ChartStackAlignToTextBlock] [-ChartStackAnchor <TopLeft>] [-ChartStackDirection <Vertical|Horizontal>] [-ChartStackOffsetX <Int32>] [-ChartStackOffsetY <Int32>] [-ChartStackOutsideTextBlock] [-ChartStackSpacing <Int32>] [-Color <Object>] -ConfigurationDirectory <String> [-DisableWallpaperRefresh] [-DisableWallpaperSlideshow] [-ExcludeDefaultUserProfile] [-ExportOnly] [-FilePath <String>] [-FontFamilyName <String>] [-FontSize <Int32>] [-JsonPath <String>] [-MonitorIndex <Int32>] [-OutputFileName <String>] [-PassThru] [-PositionX <Single>] [-PositionY <Single>] [-SpaceBetweenColumns <Int32>] [-SpaceBetweenLines <Int32>] [-SpaceX <Int32>] [-SpaceY <Int32>] [-Target <Wallpaper|LogonScreen|Both|File>] [-TextPosition <TopLeft>] [-UseScreenCoordinates] [-ValueColor <Object>] [-ValueFontFamilyName <String>] [-ValueFontSize <Single>] [-ValueWrapWidth <Int32>] [-WallpaperFit <Center>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- AllUsers SwitchParameter
- Apply wallpaper for all user profiles.
- BackgroundColor Object
- Background color to use when no wallpaper image is available.
- BGInfoContent ScriptBlock
- Script block that outputs BGInfo entries.
- ChartLayout BgInfoChartLayoutMode
- Chart layout mode.
- Possible values:
Manual,Stack - ChartStackAlignToTextBlock SwitchParameter
- Align stacked charts to the text block.
- ChartStackAnchor BgInfoTextPosition
- Anchor used when stacking charts.
- Possible values:
TopLeft,TopCenter,TopRight,MiddleLeft,MiddleCenter,MiddleRight,BottomLeft,BottomCenter,BottomRight - ChartStackDirection BgInfoChartStackDirection
- Direction used when stacking charts.
- Possible values:
Vertical,Horizontal - ChartStackOffsetX Int32
- Horizontal offset for stacked charts.
- ChartStackOffsetY Int32
- Vertical offset for stacked charts.
- ChartStackOutsideTextBlock SwitchParameter
- Place stacked charts outside the text block.
- ChartStackSpacing Int32
- Spacing between stacked charts.
- Color Object
- Default label color.
- ConfigurationDirectory String
- Output directory for generated BGInfo images.
- DisableWallpaperRefresh SwitchParameter
- Disable the forced wallpaper refresh after generation.
- DisableWallpaperSlideshow SwitchParameter
- Disable automatic preservation of the current Windows wallpaper slideshow.
- ExcludeDefaultUserProfile SwitchParameter
- Exclude the default user profile when applying to all users.
- ExportOnly SwitchParameter
- Export JSON only and skip image generation/application. Requires JsonPath.
- FilePath String
- Optional base wallpaper file path. When omitted, current wallpaper is used.
- FontFamilyName String
- Default label font family.
- FontSize Int32
- Default label font size.
- JsonPath String
- Optional path where the generated configuration JSON should be saved.
- MonitorIndex Int32
- Monitor index to target for wallpaper operations.
- OutputFileName String
- Optional output file name for the generated image.
- PassThru SwitchParameter
- Return the generated configuration object instead of rendering the image.
- PositionX Single
- Legacy position X placeholder (reserved for future layout strategies).
- PositionY Single
- Legacy position Y placeholder (reserved for future layout strategies).
- SpaceBetweenColumns Int32
- Spacing between label and value columns.
- SpaceBetweenLines Int32
- Vertical spacing between rows.
- SpaceX Int32
- X padding used for layout positioning.
- SpaceY Int32
- Y padding used for layout positioning.
- Target BgInfoTarget
- Output target (Wallpaper, File, LogonScreen, or Both).
- Possible values:
Wallpaper,LogonScreen,Both,File - TextPosition BgInfoTextPosition
- Layout anchor position (for example TopLeft, TopCenter, BottomRight).
- Possible values:
TopLeft,TopCenter,TopRight,MiddleLeft,MiddleCenter,MiddleRight,BottomLeft,BottomCenter,BottomRight - UseScreenCoordinates SwitchParameter
- Use screen coordinates for placement calculations.
- ValueColor Object
- Default value color.
- ValueFontFamilyName String
- Default value font family.
- ValueFontSize Single
- Default value font size.
- ValueWrapWidth Int32
- Maximum width used when wrapping value text. Set to 0 to disable wrapping.
- WallpaperFit DesktopWallpaperPosition
- Wallpaper fit mode used after generation.
- Possible values:
Center,Tile,Stretch,Fit,Fill,Span
Outputs
System.String, PowerBGInfo.BgInfoConfiguration