Skip to content

Latest commit

 

History

History
125 lines (83 loc) · 2.38 KB

Show-MyTask.md

File metadata and controls

125 lines (83 loc) · 2.38 KB
external help file Module Name online version schema
MyTasks-help.xml
MyTasks
2.0.0

Show-MyTask

SYNOPSIS

Display all active tasks with color highlights.

SYNTAX

Days (Default)

Show-MyTask [-DaysDue <Int32>] [<CommonParameters>]

all

Show-MyTask [-All] [<CommonParameters>]

Category

Show-MyTask [-Category <String>] [<CommonParameters>]

DESCRIPTION

This command is very similar to Get-MyTask in terms of what it displays. However, this version writes to the console and uses Write-Host to colorize critical tasks. Those that are due in the next 24 hours will be displayed in yellow. Those that are overdue will be displayed in Red. If you use the -All parameter, any completed tasks will be displayed in Green.

EXAMPLES

EXAMPLE 1

PS C:\> Show-MyTask

You will get a colorized output of Get-MyTask for tasks due in the next 30 days.

EXAMPLE 2

PS C:\> Show-MyTask -category Work

You will get a colorized output of Get-MyTask for all items in the Work category.

PARAMETERS

-All

Display all tasks including those that are completed.

Type: SwitchParameter
Parameter Sets: all
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Category

Display all tasks that belong to the specified category.

Type: String
Parameter Sets: Category
Aliases:
Accepted values: your defined categories

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DaysDue

Get tasks due in this number of days. This is the default behavior.

Type: Int32
Parameter Sets: Days
Aliases:

Required: False
Position: Named
Default value: 30
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

MyTask

OUTPUTS

MyTask

NOTES

Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/

RELATED LINKS

Get-MyTask