PowerShell/Docs/set-wallpaper.md

45 lines
1.2 KiB
Markdown
Raw Normal View History

2022-02-10 09:01:07 +01:00
## 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)
2021-10-17 14:33:27 +02:00
## Parameters
```powershell
2022-02-10 09:01:07 +01:00
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
2021-10-17 14:33:27 +02:00
2022-02-10 09:01:07 +01:00
-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
2021-10-17 14:33:27 +02:00
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
2022-02-10 09:01:07 +01:00
## Example
```powershell
PS> ./set-wallpaper C:\ocean.jpg
```
## Notes
Author: Markus Fleschutz / License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
2021-10-17 14:33:27 +02:00
*Generated by convert-ps2md.ps1 using the comment-based help of set-wallpaper.ps1*