PowerShell/Docs/set-wallpaper.md
2022-02-10 09:01:07 +01:00

1.2 KiB

set-wallpaper.ps1 - Sets the given image file as desktop wallpaper

This PowerShell script sets the given image file as desktop wallpaper (.JPG or .PNG supported)

Parameters

set-wallpaper.ps1 [[-ImageFile] <String>] [[-Style] <String>] [<CommonParameters>]

-ImageFile <String>
    Specifies the path to the image file
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Style <String>
    Specifies either Fill, Fit, Stretch, Tile, Center, or Span (default)
    
    Required?                    false
    Position?                    2
    Default value                Span
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

Example

PS> ./set-wallpaper C:\ocean.jpg

Notes

Author: Markus Fleschutz / License: CC0

https://github.com/fleschutz/PowerShell

Generated by convert-ps2md.ps1 using the comment-based help of set-wallpaper.ps1