< Back
Add-TickleEvent
Post
NAME Add-TickleEvent
SYNOPSIS
Add an entry to the tickle database.
SYNTAX
Add-TickleEvent [-Event] <String> [-Date] <DateTime> [[-Comment] <String>] [-Confirm] [-Credential <PSCredential>]
[-Passthru] [-ServerInstance <String>] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Add a tickle event to the database. The command will use the Tickle variables for, although you can override the
server instance parameter. It is strongly recommended that you avoid using special characters, especially
apostrophes, in your event name.
PARAMETERS
-Comment <String>
Enter an option comment or description.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Credential <PSCredential>
Specify a credential to authenticate to the SQL Server instance. This should normally not be required.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Date <DateTime>
Enter the date and time for the event
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Event <String>
Enter the name of the event or reminder.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Passthru [<SwitchParameter>]
Write the new event object to the pipeline.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-ServerInstance <String>
The name of your SQL Server instance. The parameter will default to the module variable.
Required? false
Position? named
Default value $TickleServerInstance
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
System.DateTime
OUTPUTS
None
MyTickle
NOTES
Learn more about PowerShell: http://jdhitsolutions.com/blog/essentia ... resources/
-------------------------- Example 1 --------------------------
PS C:\\> Add-TickleEvent -event "company picnic" -date "7/1/2019 12:00PM"
Add an event to the database.
RELATED LINKS
Get-TickleEvent
Set-TickleEvent
SYNOPSIS
Add an entry to the tickle database.
SYNTAX
Add-TickleEvent [-Event] <String> [-Date] <DateTime> [[-Comment] <String>] [-Confirm] [-Credential <PSCredential>]
[-Passthru] [-ServerInstance <String>] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Add a tickle event to the database. The command will use the Tickle variables for, although you can override the
server instance parameter. It is strongly recommended that you avoid using special characters, especially
apostrophes, in your event name.
PARAMETERS
-Comment <String>
Enter an option comment or description.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Credential <PSCredential>
Specify a credential to authenticate to the SQL Server instance. This should normally not be required.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Date <DateTime>
Enter the date and time for the event
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Event <String>
Enter the name of the event or reminder.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Passthru [<SwitchParameter>]
Write the new event object to the pipeline.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-ServerInstance <String>
The name of your SQL Server instance. The parameter will default to the module variable.
Required? false
Position? named
Default value $TickleServerInstance
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
System.DateTime
OUTPUTS
None
MyTickle
NOTES
Learn more about PowerShell: http://jdhitsolutions.com/blog/essentia ... resources/
-------------------------- Example 1 --------------------------
PS C:\\> Add-TickleEvent -event "company picnic" -date "7/1/2019 12:00PM"
Add an event to the database.
RELATED LINKS
Get-TickleEvent
Set-TickleEvent