< Back

Search-WindowsLockScreenWallpapers

Mon Jan 13, 2020 11:59 pm

NAME Search-WindowsLockScreenWallpapers



SYNOPSIS

Uses Windows lock screen wallpapers to query Google Image Search.





SYNTAX

Search-WindowsLockScreenWallpapers [[-NumberOfImages] <UInt16>] [-DumpFiles] [[-DumpPath] <FileInfo>]

[<CommonParameters>]





DESCRIPTION

The Search-WindowsLockScreenWallpapers cmdlet reads the Windows lock screen wallpapers and uses them to query

Google Image Search. This cmdlet can be piped to the Get-ChildItem cmdlet for a batch processing.





PARAMETERS

-NumberOfImages <UInt16>

Specifies a number of the latest wallpaper that will be search. The input must be a valid positive number. A

default value is 5.



Required? false

Position? 1

Default value 5

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-DumpFiles [<SwitchParameter>]

Specifies a switch if wallpaper images should be dumped or not. A default value is False.



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-DumpPath <FileInfo>

Specifies a Path to a folder where the wallpapers should be dumped. The input can be a string or a valid

instance of the System.IO.FileInfo class. A default value is 'C:\\Temp'. The input directory is created if

doesn't exist.



Required? false

Position? 2

Default value C:\\Temp

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

System.IO.FileInfo





OUTPUTS

A system query to the default web browser with the lock screen wallpaper image.





NOTES





- This cmdlet uses non-standard way how to query Google Image Search. Do not use it for automatization.

- A dump Path is created if it doesn't exist.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Search-WindowsLockScreenWallpapers



Search of the five latest downloaded wallpaper images in Google Image Search. It will open five or less tabs in

the default web browser.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Search-WindowsLockScreenWallpapers -DumpFiles



Search of the five latest downloaded wallpaper images in Google Image Search. It will open five or less tabs in

the default web browser. The wallpaper images will be dumped into C:\\Temp directory.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Search-WindowsLockScreenWallpapers -DumpFiles -DumpPath D:\\Temp



Search of the five latest downloaded wallpaper images in Google Image Search. It will open five or less tabs in

the default web browser. The wallpaper images will be dumped into custom D:\\Temp directory. The input directory is

created if doesn't exist.









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Search-WindowsLockScreenWallpapers -NumberOfImages 2 -DumpFiles -DumpPath D:\\Temp



Search of the two latest downloaded wallpaper images in Google Image Search. It will open five or less tabs in the

default web browser. The wallpaper images will be dumped into custom D:\\Temp directory. The input directory is

created if doesn't exist.











RELATED LINKS

https://github.com/KUTlime/PowerShell-G ... rch-Module