Skip to main content

Scripts for the Desktop

About 28 minPowershellpowershellpwshwindowsscriptuseful-script

Scripts for the Desktop 관련


close-calculator.ps1

close-calculator.ps1

Closes the calculator application.

This PowerShell script closes the calculator application gracefully.

Parameters
PS> ./close-calculator.ps1 [<CommonParameters>]

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

close-cortana.ps1

close-cortana.ps1

Closes Cortana.

This PowerShell script closes Microsoft's Cortana application gracefully.

Parameters
PS> ./close-cortana.ps1 [<CommonParameters>]

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

close-chrome.ps1

close-chrome.ps1

Closes the Chrome browser.

This PowerShell script closes the Google Chrome Web browser gracefully.

Parameters
PS> ./close-chrome.ps1 [<CommonParameters>]

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

close-program.ps1

close-program.ps1

Closes the given program gracefully.

This PowerShell script closes a program's processes gracefully.

Parameters
PS> ./close-program.ps1 [[-FullProgramName] <String>] [[-ProgramName] <String>] [[-ProgramAliasName] <String>] [<CommonParameters>]

-FullProgramName <String>
    Specifies the full program name
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-ProgramName <String>
    Specifies the program name
    
    Required?                    false
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-ProgramAliasName <String>
    Specifies the program alias name
    
    Required?                    false
    Position?                    3
    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.

close-edge.ps1

close-edge.ps1

Closes the Edge browser.

This PowerShell script closes the Microsoft Edge Web browser gracefully.

Parameters
PS> ./close-edge.ps1 [<CommonParameters>]

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

close-file-explorer.ps1

close-file-explorer.ps1

Closes Microsoft File Explorer.

This PowerShell script closes the Microsoft File Explorer application gracefully.

Parameters
PS> ./close-file-explorer.ps1 [<CommonParameters>]

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

close-firefox.ps1

close-firefox.ps1

Closes the Firefox browser.

This PowerShell script closes the Mozilla Firefox Web browser gracefully.

Parameters
PS> ./close-firefox.ps1 [<CommonParameters>]

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

close-microsoft-store.ps1

close-microsoft-store.ps1

Closes the Microsoft Store app.

This PowerShell script closes the Microsoft Store application gracefully.

Parameters
PS> ./close-microsoft-store.ps1 [<CommonParameters>]

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

close-netflix.ps1

close-netflix.ps1

Closes the Netflix app.

This PowerShell script closes the Netflix application gracefully.

Parameters
PS> ./close-netflix.ps1 [<CommonParameters>]

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

close-onedrive.ps1

close-onedrive.ps1

Closes Microsoft OneDrive.

This script closes Microsoft's OneDrive folder gracefully.

Parameters
close-onedrive.ps1 [<CommonParameters>]

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

close-serenade.ps1

close-serenade.ps1

Closes the Serenade application.

This PowerShell script closes the Serenade.ai application gracefully.

Parameters
PS> ./close-serenade.ps1 [<CommonParameters>]

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

close-snipping-tool.ps1

close-snipping-tool.ps1

Closes the Snipping Tool application.

This PowerShell script closes the Snipping Tool application gracefully.

Parameters
PS> ./close-snipping-tool.ps1 [<CommonParameters>]

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

close-spotify.ps1

close-spotify.ps1

Closes Spotify.

This PowerShell script closes the Spotify application gracefully.

Parameters
PS> ./close-spotify.ps1 [<CommonParameters>]

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

close-system-settings.ps1

close-system-settings.ps1

Closes the System Settings window.

This script closes the System Settings window gracefully.

Parameters
close-system-settings.ps1 [<CommonParameters>]

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

close-task-manager.ps1

close-task-manager.ps1

Closes the Task Manager.

This PowerShell script closes the Task Manager application gracefully.

Parameters
PS> ./close-task-manager.ps1 [<CommonParameters>]

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

close-thunderbird.ps1

close-thunderbird.ps1

Closes Mozilla Thunderbird.

This PowerShell script closes the Mozilla Thunderbird email application gracefully.

Parameters
PS> ./close-thunderbird.ps1 [<CommonParameters>]

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

close-vlc.ps1

close-vlc.ps1

Closes the VLC media player application.

This PowerShell script closes the VLC media player application gracefully.

Parameters
PS> ./close-vlc.ps1 [<CommonParameters>]

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

close-windows-terminal.ps1

close-windows-terminal.ps1

Closes the Windows Terminal application.

This PowerShell script closes the Windows Terminal application gracefully.

Parameters
PS> ./close-windows-terminal.ps1 [<CommonParameters>]

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

enable-god-mode.ps1

enable-god-mode.ps1

Enables the god mode (adds a new icon to the desktop).

This PowerShell script enables the god mode in Windows. It adds a new icon to the desktop.

Parameters
PS> ./enable-god-mode.ps1 [<CommonParameters>]

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

list-clipboard.ps1

list-clipboard.ps1

Lists the contents of the clipboard.

This PowerShell script lists the contents of the clipboard.

Parameters
PS> ./list-clipboard.ps1 [<CommonParameters>]

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

new-email.ps1

new-email.ps1

Starts the default email client to write a new email.

This PowerShell script opens the default email client to write a new email.

Parameters
PS> ./new-email.ps1 [[-EmailAddress] <String>] [<CommonParameters>]

-EmailAddress <String>
    Specifies the email address fill in
    
    Required?                    false
    Position?                    1
    Default value                markus@fleschutz.de
    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.

open-amazon-website.ps1

open-amazon-website.ps1

Opens Amazon's website.

This script launches the Web browser with the Amazon website.

Parameters
PS> open-amazon-website.ps1 [<CommonParameters>]

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

open-default-browser.ps1

open-default-browser.ps1

Launches the default Web browser.

This PowerShell script launches the default Web browser, optional with a given URL.

Parameters
PS> ./open-default-browser.ps1 [[-URL] <String>] [<CommonParameters>]

-URL <String>
    Specifies the URL
    
    Required?                    false
    Position?                    1
    Default value                http://www.fleschutz.de
    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.

open-calculator.ps1

open-calculator.ps1

Starts the calculator program.

This PowerShell script launches the calculator application.

Parameters
PS> ./open-calculator.ps1 [<CommonParameters>]

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

open-c-drive.ps1

open-c-drive.ps1

Opens the C drive folder.

This PowerShell script launches the File Explorer with the C: drive folder.

Parameters
PS> ./open-c-drive.ps1 [<CommonParameters>]

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

open-downloads-folders.ps1

open-downloads-folders.ps1

Opens the user's downloads folder.

This PowerShell script launches the File Explorer showing the user's downloads folder.

Parameters
PS> ./open-downloads-folder.ps1 [<CommonParameters>]

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

open-dropbox-folder.ps1

open-dropbox-folder.ps1

Opens the user's Dropbox folder.

This PowerShell script launches the File Explorer with the user's Dropbox folder.

Parameters
PS> ./open-dropbox-folder.ps1 [<CommonParameters>]

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

@tba Example

PS> ./open-dropbox-folder
#


open-edge.ps1

open-edge.ps1

Launches the Edge browser.

This PowerShell script launches the Microsoft Edge Web browser.

Parameters
PS> ./open-edge.ps1 [<CommonParameters>]

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

open-email-client.ps1

open-email-client.ps1

Starts the default email client.

This PowerShell script launches the default email client.

Parameters
PS> ./open-email-client.ps1 [<CommonParameters>]

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

open-facebook-website.ps1

open-facebook-website.ps1

Opens Facebook's website.

This script launches the Web browser with the Facebook website.

Parameters
open-facebook-website.ps1 [<CommonParameters>]

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

open-file-explorer.ps1

open-file-explorer.ps1

Opens the File Explorer.

This PowerShell script launches the File Explorer.

Parameters
PS> ./open-file-explorer.ps1 [[-Path] <String>] [<CommonParameters>]

-Path <String>
    Specifies the path to the folder to display
    
    Required?                    false
    Position?                    1
    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.

open-firefox.ps1

open-firefox.ps1

Launches the Firefox browser.

This PowerShell script launches the Mozilla Firefox Web browser.

Parameters
PS> ./open-firefox.ps1 [[-URL] <String>] [<CommonParameters>]

-URL <String>
    Specifies an URL
    
    Required?                    false
    Position?                    1
    Default value                http://www.fleschutz.de
    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.

open-fritz-box.ps1

open-fritz-box.ps1

Opens FRITZ!Box's web interface.

This script launches the Web browser with FRITZ!Box's Web interface.

Parameters
/home/markus/Repos/PowerShell/Scripts/open-fritz-box.ps1 [<CommonParameters>]

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

open-github.ps1

open-github.ps1

Opens GitHub's website.

This script launches the Web browser with the GitHub website.

Parameters
/home/markus/Repos/PowerShell/Scripts/open-github.ps1 [<CommonParameters>]

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

open-google-contacts.ps1

open-google-contacts.ps1

Opens Google Contacts.

This PowerShell script launches the Web browser with the Google Contacts website.

Parameters
PS> ./open-google-contacts.ps1 [<CommonParameters>]

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

open-google-earth.ps1

open-google-earth.ps1

Opens Google Earth.

This PowerShell script launches the Web browser with the Google Earth website.

Parameters
PS> ./open-google-earth.ps1 [<CommonParameters>]

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

open-google-mail.ps1

open-google-mail.ps1

Opens Google Mail.

This PowerShell script launches the Web browser with the Google Mail website.

Parameters
PS> ./open-google-mail.ps1 [<CommonParameters>]

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

open-google-maps.ps1

open-google-maps.ps1

Opens Google Maps.

This PowerShell script launches the Web browser with the Google Maps website.

Parameters
PS> ./open-google-maps.ps1 [<CommonParameters>]

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

open-google-news.ps1

open-google-news.ps1

Opens Google News.

This PowerShell script launches the Web browser with the Google News website.

Parameters
PS> ./open-google-news.ps1 [<CommonParameters>]

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

open-google-play.ps1

open-google-play.ps1

Opens Google Play. Read more...

This PowerShell script launches the Web browser with the Google Play website.

Parameters
PS> ./open-google-play.ps1 [<CommonParameters>]

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

open-google-search.ps1

open-google-search.ps1

Opens Google Search. Read more...

This PowerShell script launches the Web browser with the Google Search website.

Parameters
PS> ./open-google-search.ps1 [<CommonParameters>]

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

open-google-translate.ps1

open-google-translate.ps1

Opens Google Translate. Read more...

This PowerShell script launches the Web browser with the Google Translate website.

Parameters
PS> ./open-google-translate.ps1 [<CommonParameters>]

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

open-home-folder.ps1

open-home-folder.ps1

Opens the user's home folder. Read more...

This script launches the File Explorer with the user's home folder.

Parameters
PS> ./open-home-folder.ps1 [<CommonParameters>]

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

open-music-folder.ps1

open-music-folder.ps1

Opens the user's music folder. Read more...

This script launches the File Explorer with the user's music folder.

Parameters
PS> ./open-music-folder.ps1 [<CommonParameters>]

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

open-netflix.ps1

open-netflix.ps1

Starts the Netflix app. Read more...

This script launches the Netflix application.

Parameters
PS> ./open-netflix.ps1 [<CommonParameters>]

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

open-microsoft-store.ps1

open-microsoft-store.ps1

Launches the Microsoft Store app. Read more...

This script launches the Microsoft Store application.

Parameters
PS> ./open-microsoft-store.ps1 [<CommonParameters>]

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

open-notepad.ps1

open-notepad.ps1

Starts the Notepad app. Read more...

This script launches the Notepad application.

Parameters
PS>./open-notepad.ps1 [<CommonParameters>]

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

open-onedrive-folder.ps1

open-onedrive-folder.ps1

Opens the user's OneDrive folder.

This script launches Microsoft OneDrive with the user's OneDrive folder.

Parameters
PS> ./open-onedrive-folder.ps1 [<CommonParameters>]

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

open-pictures-folder.ps1

open-pictures-folder.ps1

Opens the user's pictures folder.

This script launches the File Explorer with the user's pictures folder.

Parameters
PS> ./open-pictures-folder.ps1 [<CommonParameters>]

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

open-recycle-bin.ps1

open-recycle-bin.ps1

Opens the user's recycle bin folder.

This script launches the File Explorer with the user's recycle bin folder.

Parameters
PS> ./open-recycle-bin.ps1 [<CommonParameters>]

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

open-repos-folder.ps1

open-repos-folder.ps1

Opens the user's Git repositories folder.

This script launches the File Explorer with the user's Git repositories folder.

Parameters
PS> ./open-repos-folder.ps1 [<CommonParameters>]

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

open-snipping-tool.ps1

open-snipping-tool.ps1

Starts the Snipping Tool.

This script launches the Snipping Tool application.

Parameters
PS> ./open-snipping-tool.ps1 [<CommonParameters>]

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

open-speed-test.ps1

open-speed-test.ps1

Opens Cloudflare's speed test.

This script launches the Web browser with Cloudflare's speed test website.

Parameters
PS> ./open-speed-test.ps1 [<CommonParameters>]

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

open-spotify.ps1

open-spotify.ps1

Opens Spotify.

This script launches the Spotify application.

Parameters
PS> ./open-spotify.ps1 [<CommonParameters>]

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

open-system-settings.ps1

open-system-settings.ps1

Opens the system settings of Windows.

This script launches the Windows system settings application.

Parameters
PS> open-system-settings.ps1 [<CommonParameters>]

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


open-task-manager.ps1

open-task-manager.ps1

Starts the Task Manager.

This script launches the Windows Task Manager application.

Parameters
PS> ./open-task-manager.ps1 [<CommonParameters>]

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

open-videos-folder.ps1

open-videos-folder.ps1

Opens the user's videos folder.

This script launches the Windows Terminal application.

Parameters
PS> ./open-windows-terminal.ps1 [<CommonParameters>]

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

open-windows-terminal.ps1

open-windows-terminal.ps1

Launches Windows Terminal.

open-wikipedia-website.ps1 - Opens the Wikipedia website

This script launches the Web browser with the Wikipedia website.

Parameters
PS> ./open-wikipedia-website.ps1 [<CommonParameters>]

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

open-wikipedia-website.ps1

open-wikipedia-website.ps1

Opens Wikipedia's website.

This script launches the Web browser with the YouTube website.

Parameters
PS> ./open-youtube-website.ps1 [<CommonParameters>]

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

open-youtube-website.ps1

open-youtube-website.ps1

Opens YouTube's website.

@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

save-screenshot.ps1

Saves a single screenshot.

This PowerShell script takes a single screenshot and saves it into a target folder (default is the user's screenshots folder).

Parameters
PS> ./save-screenshot.ps1 [[-TargetFolder] <String>] [<CommonParameters>]

-TargetFolder <String>
    Specifies the target folder (the user's screenshots folder by default)
    
    Required?                    false
    Position?                    1
    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.

set-wallpaper.ps1

set-wallpaper.ps1

Sets the given image as wallpaper.

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

Parameters
PS> ./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.

이찬희 (MarkiiimarK)
Never Stop Learning.