mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-19 09:19:05 +01:00
Add open-task-manager.ps1
This commit is contained in:
parent
1f481c65b7
commit
6c5e2efc35
@ -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
|
||||
|
Can't render this file because it has a wrong number of fields in line 91.
|
@ -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 [<CommonParameters>]
|
||||
|
||||
|
||||
[<CommonParameters>]
|
||||
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*
|
||||
|
26
Docs/open-task-manager.md
Normal file
26
Docs/open-task-manager.md
Normal file
@ -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 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
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*
|
@ -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] <String>] [<CommonParameters>]
|
||||
save-screenshot.ps1 [[-TargetFolder] <String>] [<CommonParameters>]
|
||||
|
||||
-Directory <String>
|
||||
Specifies the target directory (the user's pictures folder by default)
|
||||
-TargetFolder <String>
|
||||
Specifies the target folder (the user's pictures folder by default)
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
@ -22,7 +22,8 @@ save-screenshot.ps1 [[-Directory] <String>] [<CommonParameters>]
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS> ./save-screenshot C:\Temp
|
||||
PS> ./save-screenshot
|
||||
✔️ screenshot saved to C:\Users\Markus\Pictures\2021-10-10T14-33-22.png
|
||||
|
||||
```
|
||||
|
||||
|
@ -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) |
|
||||
|
20
Scripts/open-task-manager.ps1
Executable file
20
Scripts/open-task-manager.ps1
Executable file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user