SYNOPSIS
Pins or unpins a shortcut to the start menu or task bar.
SYNTAX
Set-PinnedApplication [-Action] <String> [-FilePath] <String> [<CommonParameters>]
DESCRIPTION
Pins or unpins a shortcut to the start menu or task bar.
This should typically be run in the user context, as pinned items are stored in the user profile.
PARAMETERS
-Action <String>
Action to be performed. Options: 'PintoStartMenu','UnpinfromStartMenu','PintoTaskbar','UnpinfromTaskbar'.
-FilePath <String>
Path to the shortcut file to be pinned or unpinned.
<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).
-------------------------- EXAMPLE 1 --------------------------
PS C:\>Set-PinnedApplication -Action 'PintoStartMenu' -FilePath "$envProgramFilesX86\IBM\Lotus\Notes\notes.exe"
-------------------------- EXAMPLE 2 --------------------------
PS C:\>Set-PinnedApplication -Action 'UnpinfromTaskbar' -FilePath "$envProgramFilesX86\IBM\Lotus\Notes\notes.exe"
REMARKS
To see the examples, type: "get-help Set-PinnedApplication -examples".
For more information, type: "get-help Set-PinnedApplication -detailed".
For technical information, type: "get-help Set-PinnedApplication -full".
For online help, type: "get-help Set-PinnedApplication -online"