Set-PSReminder

August 13, 2025 ยท View on GitHub

SYNOPSIS

Modify a PSReminder.

SYNTAX

Set-PSReminder [-ID] <Int32> [-EventName <String>] [-Date <DateTime>] [-Comment <String>] [-Tags <String[]>] [-PassThru] [-DatabasePath <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Use this command to update or modify an existing PSReminder. This command will use the PSReminder variables for its defaults.

EXAMPLES

Example 1

PS C:\> Set-PSReminder -ID 11 -Comment "Room 404" -date "8/18/2024 2:00PM" -tags "Work"

Update the comment, date, and tags for the event with ID 11.

PARAMETERS

-Comment

The new comment for the event.

Type: String
Parameter Sets: (All)
Aliases:

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

-Date

The new date for the event.

Type: DateTime
Parameter Sets: (All)
Aliases:

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

-EventName

The new name for the event.

Type: String
Parameter Sets: (All)
Aliases: Name

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

-ID

The event ID. This is used to identify the event to update.

Type: Int32
Parameter Sets: (All)
Aliases:

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

-Tags

Specify an optional array of tags

Type: String[]
Parameter Sets: (All)
Aliases:

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

-DatabasePath

The path to the SQLite database.

Type: String
Parameter Sets: (All)
Aliases:

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

-PassThru

Write the updated PSReminder object to the pipeline.

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

-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

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.Int32

OUTPUTS

None

PSReminder

NOTES

This command has an alias of spsr.

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

Get-PSReminder

Move-PSReminder

Remove-PSReminder