diff --git a/Data/scripts.csv b/Data/scripts.csv index f7425c5e..5c9d0419 100644 --- a/Data/scripts.csv +++ b/Data/scripts.csv @@ -163,6 +163,7 @@ open-file-explorer.ps1, Starts the Microsoft File Explorer open-netflix.ps1, Starts the Netflix app open-onedrive.ps1, Opens the user's OneDrive folder open-recycle-bin.ps1, Starts the File Explorer with the recycle bin folder +open-task-manager.ps1, Starts the Task Manager pick-commit.ps1, Cherry-picks a Git commit into multiple branches play-beep.ps1, Plays a beep sound play-files.ps1, Plays the given audio files diff --git a/Docs/list-tasks.md b/Docs/list-tasks.md index 658578e6..16fcb7cc 100644 --- a/Docs/list-tasks.md +++ b/Docs/list-tasks.md @@ -1,34 +1,13 @@ -## list-tasks.ps1 - Lists all Windows scheduler tasks +## list-tasks.ps1 - list-tasks.ps1 -This script lists all Windows scheduler tasks. ## Parameters ```powershell -list-tasks.ps1 [] + [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. ``` -## Example -```powershell -PS> ./list-tasks - - - -TaskPath TaskName State --------- -------- ----- -\Microsoft\Windows\.NET Framework\ .NET Framework NGEN v4.0.30319 Ready -\Microsoft\Windows\.NET Framework\ .NET Framework NGEN v4.0.30319 64 Ready -... - -``` - -## Notes -Author: Markus Fleschutz · License: CC0 - -## Related Links -https://github.com/fleschutz/PowerShell - *Generated by convert-ps2md.ps1 using the comment-based help of list-tasks.ps1* diff --git a/Docs/open-task-manager.md b/Docs/open-task-manager.md new file mode 100644 index 00000000..6389257b --- /dev/null +++ b/Docs/open-task-manager.md @@ -0,0 +1,26 @@ +## open-task-manager.ps1 - Starts the Task Manager + +This script starts the Task Manager application. + +## Parameters +```powershell +open-task-manager.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./open-task-manager + +``` + +## Notes +Author: Markus Fleschutz · License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +*Generated by convert-ps2md.ps1 using the comment-based help of open-task-manager.ps1* diff --git a/Docs/save-screenshot.md b/Docs/save-screenshot.md index 089b4b5a..c68baa39 100644 --- a/Docs/save-screenshot.md +++ b/Docs/save-screenshot.md @@ -1,13 +1,13 @@ -## save-screenshot.ps1 - Takes a single screenshot and saves it into a folder +## save-screenshot.ps1 - Saves a single screenshot This script takes a single screenshot and saves it into a target folder (the user's pictures folder by default). ## Parameters ```powershell -save-screenshot.ps1 [[-Directory] ] [] +save-screenshot.ps1 [[-TargetFolder] ] [] --Directory - Specifies the target directory (the user's pictures folder by default) +-TargetFolder + Specifies the target folder (the user's pictures folder by default) Required? false Position? 1 @@ -22,7 +22,8 @@ save-screenshot.ps1 [[-Directory] ] [] ## Example ```powershell -PS> ./save-screenshot C:\Temp +PS> ./save-screenshot + ✔️ screenshot saved to C:\Users\Markus\Pictures\2021-10-10T14-33-22.png ``` diff --git a/README.md b/README.md index df626199..0782f72d 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ Mega Collection of PowerShell Scripts | [open-netflix.ps1](Scripts/open-netflix.ps1) | Starts the Netflix app | [Help](Docs/open-netflix.md) | | [open-onedrive.ps1](Scripts/open-onedrive.ps1) | Opens the user's OneDrive folder | [Help](Docs/open-onedrive.md) | | [open-recycle-bin.ps1](Scripts/open-recycle-bin.ps1) | Starts the File Explorer with the recycle bin folder | [Help](Docs/open-recycle-bin.md) | +| [open-task-manager.ps1](Scripts/open-task-manager.ps1)| Starts the Task Manager | [Help](Docs/open-task-manager.md) | | [remind-me.ps1](Scripts/remind-me.ps1) | Creates a scheduled task that will display a popup message | [Help](Docs/remind-me.md) | | [save-screenshot.ps1](Scripts/save-screenshot.ps1) | Saves a single screenshot | [Help](Docs/save-screenshot.md) | | [set-wallpaper.ps1](Scripts/set-wallpaper.ps1) | Sets the given image as wallpaper | [Help](Docs/set-wallpaper.md) | diff --git a/Scripts/open-task-manager.ps1 b/Scripts/open-task-manager.ps1 new file mode 100755 index 00000000..108a79c5 --- /dev/null +++ b/Scripts/open-task-manager.ps1 @@ -0,0 +1,20 @@ +<# +.SYNOPSIS + Starts the Task Manager +.DESCRIPTION + This script starts the Task Manager application. +.EXAMPLE + PS> ./open-task-manager +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +try { + start-process taskmgr.exe + exit 0 # success +} catch { + "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" + exit 1 +}