Scripts for the Desktop 관련
close-calculator.ps1
This PowerShell script closes the calculator application gracefully.
close-cortana.ps1
This PowerShell script closes Microsoft's Cortana application gracefully.
close-chrome.ps1
This PowerShell script closes the Google Chrome Web browser gracefully.
close-program.ps1
This PowerShell script closes a program's processes gracefully.
close-edge.ps1
This PowerShell script closes the Microsoft Edge Web browser gracefully.
close-file-explorer.ps1
This PowerShell script closes the Microsoft File Explorer application gracefully.
close-firefox.ps1
This PowerShell script closes the Mozilla Firefox Web browser gracefully.
close-microsoft-store.ps1
This PowerShell script closes the Microsoft Store application gracefully.
close-netflix.ps1
This PowerShell script closes the Netflix application gracefully.
❌close-onedrive.ps1
This script closes Microsoft's OneDrive folder gracefully.
close-serenade.ps1
This PowerShell script closes the Serenade.ai application gracefully.
close-snipping-tool.ps1
This PowerShell script closes the Snipping Tool application gracefully.
close-spotify.ps1
This PowerShell script closes the Spotify application gracefully.
❌close-system-settings.ps1
This script closes the System Settings window gracefully.
close-task-manager.ps1
This PowerShell script closes the Task Manager application gracefully.
close-thunderbird.ps1
This PowerShell script closes the Mozilla Thunderbird email application gracefully.
close-vlc.ps1
This PowerShell script closes the VLC media player application gracefully.
close-windows-terminal.ps1
This PowerShell script closes the Windows Terminal application gracefully.
enable-god-mode.ps1
This PowerShell script enables the god mode in Windows. It adds a new icon to the desktop.
list-clipboard.ps1
This PowerShell script lists the contents of the clipboard.
new-email.ps1
This PowerShell script opens the default email client to write a new email.
❌open-amazon-website.ps1
This script launches the Web browser with the Amazon website.
open-default-browser.ps1
This PowerShell script launches the default Web browser, optional with a given URL.
open-calculator.ps1
This PowerShell script launches the calculator application.
open-c-drive.ps1
This PowerShell script launches the File Explorer with the C: drive folder.
open-downloads-folders.ps1
This PowerShell script launches the File Explorer showing the user's downloads folder.
open-dropbox-folder.ps1
This PowerShell script launches the File Explorer with the user's Dropbox folder.
open-edge.ps1
This PowerShell script launches the Microsoft Edge Web browser.
open-email-client.ps1
This PowerShell script launches the default email client.
❌open-facebook-website.ps1
This script launches the Web browser with the Facebook website.
open-file-explorer.ps1
This PowerShell script launches the File Explorer.
open-firefox.ps1
This PowerShell script launches the Mozilla Firefox Web browser.
❌open-fritz-box.ps1
This script launches the Web browser with FRITZ!Box's Web interface.
❌open-github.ps1
This script launches the Web browser with the GitHub website.
open-google-contacts.ps1
This PowerShell script launches the Web browser with the Google Contacts website.
open-google-earth.ps1
This PowerShell script launches the Web browser with the Google Earth website.
open-google-mail.ps1
This PowerShell script launches the Web browser with the Google Mail website.
open-google-maps.ps1
This PowerShell script launches the Web browser with the Google Maps website.
open-google-news.ps1
This PowerShell script launches the Web browser with the Google News website.
open-google-play.ps1
This PowerShell script launches the Web browser with the Google Play website.
open-google-search.ps1
This PowerShell script launches the Web browser with the Google Search website.
open-google-translate.ps1
This PowerShell script launches the Web browser with the Google Translate website.
open-home-folder.ps1
This script launches the File Explorer with the user's home folder.
open-music-folder.ps1
This script launches the File Explorer with the user's music folder.
open-netflix.ps1
This script launches the Netflix application.
open-microsoft-store.ps1
This script launches the Microsoft Store application.
❌open-notepad.ps1
This script launches the Notepad application.
❌open-onedrive-folder.ps1
This script launches Microsoft OneDrive with the user's OneDrive folder.
open-pictures-folder.ps1
This script launches the File Explorer with the user's pictures folder.
❌open-recycle-bin.ps1
This script launches the File Explorer with the user's recycle bin folder.
open-repos-folder.ps1
This script launches the File Explorer with the user's Git repositories folder.
open-snipping-tool.ps1
This script launches the Snipping Tool application.
open-speed-test.ps1
This script launches the Web browser with Cloudflare's speed test website.
open-spotify.ps1
This script launches the Spotify application.
❌ open-system-settings.ps1
This script launches the Windows system settings application.
open-task-manager.ps1
This script launches the Windows Task Manager application.
open-videos-folder.ps1
This script launches the Windows Terminal application.
❌open-windows-terminal.ps1
open-wikipedia-website.ps1 - Opens the Wikipedia website
This script launches the Web browser with the Wikipedia website.
❌open-wikipedia-website.ps1
This script launches the Web browser with the YouTube website.
❌open-youtube-website.ps1
@tab Script Content
:::
remind-me.ps1
powershellcomponent VPCard { "title": "remind-me.ps1", "desc": "Creates a scheduled task that will display a popup message.", "link": "https://github.com/fleschutz/PowerShell/blob/master/remind-me.md", "logo": "https://avatars.githubusercontent.com/u/16557787?v=4", "background": "rgba(10, 10, 10, 0.2)" }
This PowerShell script creates a scheduled task that will display a popup message.
::: tabs
@tab:active Parameters
```powershell
PS> ./remind-me.ps1 [[-Message] <String>] [[-Time] <DateTime>] [<CommonParameters>]
-Message <String>    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false
-Time <DateTime>
    
    Required?                    false
    Position?                    2
    Default value                
    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.
@tab Example
PS> ./remind-me "Dentist" "4/10/2021 12:00 PM"
# TaskPath                                       TaskName                          State
# --------                                       --------                          -----
# \                                              Reminder_451733811                Ready
@tab Script Content
<#
.SYNOPSIS
	Creates a scheduled task that will display a popup message
.DESCRIPTION
	This PowerShell script creates a scheduled task that will display a popup message.
.EXAMPLE
	PS> ./remind-me "Dentist" "4/10/2021 12:00 PM"
	TaskPath                                       TaskName                          State
	--------                                       --------                          -----
	\                                              Reminder_451733811                Ready
.LINK
	https://github.com/fleschutz/PowerShell
.NOTES
	Author: Markus Fleschutz | License: CC0
#>
#requires -version 4
param([string]$Message = "", [datetime]$Time)
try {
	if ($Message -eq "") { $Message = read-host "Enter reminder message" }
	$Task = New-ScheduledTaskAction -Execute msg -Argument "* $Message"
	$Trigger = New-ScheduledTaskTrigger -Once -At $Time
	$Random = (Get-Random)
	Register-ScheduledTask -Action $Task -Trigger $Trigger -TaskName "Reminder_$Random" -Description "Reminder"
	exit 0
} catch {
	"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
	exit 1
}
:::
save-screenshot.ps1
This PowerShell script takes a single screenshot and saves it into a target folder (default is the user's screenshots folder).
set-wallpaper.ps1
This PowerShell script sets the given image file as desktop wallpaper (.JPG or .PNG supported)