Suspend-MyTimer

August 21, 2025 ยท View on GitHub

SYNOPSIS

Pause a MyTimer object.

SYNTAX

Suspend-MyTimer [[-Name] <String>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Use this command to pause or suspend a running MyTask object. The command has an alias of Pause-MyTimer.

EXAMPLES

Example 1

PS C:\> Suspend-MyTimer Client1 -PassThru

Name             Start                Stop Duration    Status Description
----             -----                ---- --------    ------ -----------
Client1 3/5/2025 10:29:28 AM      00:00:42:31 Paused work for Client1

he command does not write anything to the pipeline unless you use -Passthru.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-Name

Pause a MyTimer object. The timer must be running.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PassThru

Return the timer object after pausing it.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
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.

INPUTS

System.String

OUTPUTS

None

MyTimer

NOTES

Learn more about PowerShell: https://jdhitsolutions.com/yourls/newsletter

Resume-MyTimer