< Back

New-BurntToastShoulderTap

Sun Jan 12, 2020 7:46 pm

NAME New-BurntToastShoulderTap



SYNOPSIS

Creates and displays a Shoulder Tap notification.





SYNTAX

New-BurntToastShoulderTap [-Image] <String> [-Person] <String> [[-Text] <String[]>] [[-AppLogo] <String>]

[[-Button] <IToastButton[]>] [[-Header] <ToastHeader>] [[-ProgressBar] <AdaptiveProgressBar[]>]

[[-UniqueIdentifier] <String>] [[-ExpirationTime] <DateTime>] [-SuppressPopup] [[-CustomTimestamp] <DateTime>]

[[-AppId] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The New-BurntToastShoulderTap function creates and displays a Shoulder Tap notification on Microsoft Windows 10.



You can provide a static image or animated GIF, which will be displayed above the specified pinned contact.



If a matching contact cannot be found, Windows will fall back to a toast notification. This toast notification

will also been seen in the Action Center (with or without a working Shoulder Tap.)



You can optionally call the New-BurntToastShoulderTap function with the ShoulderTap alias.





PARAMETERS

-Image <String>

The URI of the image. Can be a static image or animated GIF.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Person <String>

The email address of the "person" from which the Shoulder Tap is coming from.



A contact with a matching email address must be pinned to the task bar.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Text <String[]>

Specifies the text to show on the Toast Notification. Up to three strings can be displayed, the first of which

will be embolden as a title.



The toast version will be shown on screen if the required contact is not pinned to the task bar, and will also

appear in the Action Center.



Required? false

Position? 3

Default value Default Notification

Accept pipeline input? false

Accept wildcard characters? false



-AppLogo <String>

Specifies the path to an image that will override the default image displayed with a Toast Notification.



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Button <IToastButton[]>

Allows up to five buttons to be added to the bottom of the Toast Notification. These buttons should be created

using the New-BTButton function.



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Header <ToastHeader>

Specify the Toast Header object created using the New-BTHeader function, for seperation/categorization of

toasts from the same AppId.



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ProgressBar <AdaptiveProgressBar[]>

Specify one or more Progress Bar object created using the New-BTProgressBar function.



Required? false

Position? 7

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UniqueIdentifier <String>

A string that uniquely identifies a toast notification. Submitting a new toast with the same identifier as a

previous toast will replace the previous toast.



This is useful when updating the progress of a process, using a progress bar, or otherwise correcting/updating

the information on a toast.



Required? false

Position? 8

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExpirationTime <DateTime>

The time after which the notification is no longer relevant and should be removed from the People notification

and Action Center.



Required? false

Position? 9

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SuppressPopup [<SwitchParameter>]

Bypasses display to the screen and sends the notification directly to the Action Center.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-CustomTimestamp <DateTime>

Sets the time at which Windows should consider the notification to have been created. If not specified the

time at which the notification was recieved will be used.



The time stamp affects sorting of notifications in the Action Center.



Required? false

Position? 10

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AppId <String>

Specifies the AppId of the 'application' or process that spawned the toast notification.



Defaults to the People App, rather than the configured default.



Required? false

Position? 11

Default value Microsoft.People_8wekyb3d8bbwe!x4c7a3b7dy2188y46d4ya362y19ac5a5805e5x

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

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

LOTS...





OUTPUTS

None

New-BurntToastShoulderTap displays the Shoulder Tap that is created.





NOTES





There's some manual steps required to create and pin a contact which matches the specified email address in

the Person parameter.



There will be a blog post about this on https://toastit.dev, and also further documented within this module in

the next release.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$ShoulderSplat = @{



Image = 'https://www.route66sodas.com/wp-content ... /Alert.gif'

Person = 'stormy@example.com'

Text = 'Alarms!', "There's a thing you need to worry about"

}



New-BurntToastShoulderTap @ShoulderSplat











RELATED LINKS

https://github.com/Windos/BurntToast/bl ... lderTap.md