Stop-PSCountdownTimer

August 21, 2025 ยท View on GitHub

SYNOPSIS

Stop a Countdown Timer

SYNTAX

Stop-PSCountdownTimer [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

When you start a PSCountdownTimer, you can control it from your command prompt with the PSCountdownClocksynchronizedhashtable.YoucansettheRunningpropertytoPSCountdownClock synchronized hashtable. You can set the Running property to False to terminate it. Or you can run this command. This command will terminate the clock, remove the synchronized hashtable, and clean up the runspace.

EXAMPLES

Example 1

PS C:\> Stop-PSCountdownTimer -WhatIf

This command supports -WhatIf.

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

-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

None

OUTPUTS

None

NOTES

Start-PSCountdownTimer