API Reference
Command
New-BGInfoConfiguration
Creates a BGInfo configuration object.
Remarks
Use this to build reusable configurations that can be exported to JSON.
Examples
EXAMPLE 1
New-BGInfoConfiguration -FilePath 'C:\Path'
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-BGInfoConfiguration [-AllUsers] [-BackgroundColor <Object>] [-ChartLayout <Manual|Stack>] [-Charts <BgInfoChart[]>] [-ChartStackAlignToTextBlock] [-ChartStackAnchor <TopLeft>] [-ChartStackDirection <Vertical|Horizontal>] [-ChartStackOffsetX <Int32>] [-ChartStackOffsetY <Int32>] [-ChartStackOutsideTextBlock] [-ChartStackSpacing <Int32>] [-Color <Object>] [-ConfigurationDirectory <String>] [-DisableWallpaperRefresh] [-DisableWallpaperSlideshow] [-Entries <BgInfoEntry[]>] [-ExcludeDefaultUserProfile] [-FilePath <String>] [-FontFamilyName <String>] [-FontSize <Single>] [-Images <BgInfoImage[]>] [-MonitorIndex <Int32>] [-OutputFileName <String>] [-PositionX <Single>] [-PositionY <Single>] [-SpaceBetweenColumns <Int32>] [-SpaceBetweenLines <Int32>] [-SpaceX <Int32>] [-SpaceY <Int32>] [-Target <Wallpaper|LogonScreen|Both|File>] [-TextPosition <TopLeft>] [-Topologies <BgInfoTopology[]>] [-UseScreenCoordinates] [-ValueColor <Object>] [-ValueFontFamilyName <String>] [-ValueFontSize <Single>] [-ValueWrapWidth <Int32>] [-Variables <BgInfoVariable[]>] [-VisualCanvases <BgInfoVisualCanvas[]>] [-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.
- ChartLayout BgInfoChartLayoutMode
- Chart layout mode.
- Possible values:
Manual,Stack - Charts BgInfoChart[]
- Charts to include in the configuration.
- 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 of 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 wallpaper refresh (keep old behavior).
- DisableWallpaperSlideshow SwitchParameter
- Disable automatic preservation of the current Windows wallpaper slideshow.
- Entries BgInfoEntry[]
- Entries to include in the configuration.
- ExcludeDefaultUserProfile SwitchParameter
- Exclude the default user profile when applying to all users.
- FilePath String
- Optional base wallpaper file path.
- FontFamilyName String
- Default label font family.
- FontSize Single
- Default label font size.
- Images BgInfoImage[]
- Image overlays to include in the configuration.
- MonitorIndex Int32
- Monitor index to target for wallpaper operations.
- OutputFileName String
- Optional output file name for the generated image.
- PositionX Single
- Legacy position X placeholder.
- PositionY Single
- Legacy position Y placeholder.
- 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.
- Possible values:
TopLeft,TopCenter,TopRight,MiddleLeft,MiddleCenter,MiddleRight,BottomLeft,BottomCenter,BottomRight - Topologies BgInfoTopology[]
- Topology diagrams to include in the configuration.
- UseScreenCoordinates SwitchParameter
- Use screen coordinates for layout positioning.
- 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.
- Variables BgInfoVariable[]
- Variables to include in the configuration.
- VisualCanvases BgInfoVisualCanvas[]
- Visual canvas overlays to include in the configuration.
- WallpaperFit DesktopWallpaperPosition
- Wallpaper fit mode used after generation.
- Possible values:
Center,Tile,Stretch,Fit,Fill,Span
Outputs
PowerBGInfo.BgInfoConfiguration