Initialize-PSReminderDatabase

August 13, 2025 ยท View on GitHub

SYNOPSIS

Initialize a new PSReminder database.

SYNTAX

Initialize-PSReminderDatabase [[-DatabasePath] <String>] [-Comment <String>] [-Passthru] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Use this command to initialize a new PSReminder database and table. You need to specify the path for the new database file. The command will use the built-in PSReminder variables so update them if necessary before running this command.

EXAMPLES

Example 1

PS C:\> Initialize-PSReminderDatabase

PARAMETERS

-DatabasePath

Enter the full path for the SQLite database file. It should end in .db

Type: String
Parameter Sets: (All)
Aliases:

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

-Comment

Specify an optional comment for the database.

Type: String
Parameter Sets: (All)
Aliases:

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

-Passthru

Write the database file 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

None

OUTPUTS

None

System.IO.FileInfo

NOTES

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

Get-PSReminderDBInformation