Miscellaneous PowerShell Scripts
This script will pull the latest 100 images down from a given subreddit.
Parameters available:
sort
- "new", "top", "hot" or "rising" [Defaults tonew
]subReddits
Array of subreddits [Defaults to"EarthPorn","Wallpapers"
]wallpaperRoot
[Defaults toC:\Wallpapers
]minWidth
/minHeight
[Defaults to width1920
and height1080
]ignorePortrait
- Ignore portrait images ($true
) or include them ($false
) [Defaults to$true
]
Examples:
.\Get-RedditWallpapers.ps1 -subReddits EarthPorn,Pics,Wallpapers
.\Get-RedditWallpapers.ps1 -wallpaperRoot D:\alternateRoot
.\Get-RedditWallpapers.ps1 -minWidth 1920 -minHeight 1200
.\Get-RedditWallpapers.ps1 -sort rising
.\Get-RedditWallpapers.ps1 -ignorePortrait $false
Windows 10/11 is constantly updating your lock screen with its curated, personalized slideshow of images in Windows Spotlight.
This script will copy all the desktop wallpapers from $env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets
to a directory automatically! Just update the first line of the script with your desired destination.
Creates one or more passwords. Options include password length, minimum number of non-alphanumeric characters, and number of passwords to be generated. Returns an array of values.
Generates a random string of the given length. Defaults to 20 characters