Skip to content

Add-CitrixBrowserShortcut

SYNOPSIS

Create a browser shortcut for a specified URL.

SYNTAX

Add-CitrixBrowserShortcut [-Name] <String> [-URL] <Uri> [[-Browser] <String>] [-RunInAppMode] [-WhatIf]
 [-Confirm] [<CommonParameters>]

DESCRIPTION

The `Add-BrowserShortcut` function creates a browser shortcut for a specified URL. It supports multiple browsers, including Google Chrome, Microsoft Edge, and Mozilla Firefox. The function allows the shortcut to run in app mode and integrates with Citrix for publishing the application.

EXAMPLES

EXAMPLE 1

Add-BrowserShortcut -Name "MyApp" -URL "https://example.com"

Creates a browser shortcut named "MyApp" for the URL "https://example.com" using Google Chrome.

EXAMPLE 2

Add-BrowserShortcut -Name "MyApp" -URL "https://example.com" -Browser "Edge" -RunInAppMode

Creates a browser shortcut named "MyApp" for the URL "https://example.com" using Microsoft Edge in app mode.

PARAMETERS

-Name

The name of the shortcut.

Type: String
Parameter Sets: (All)
Aliases:

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

-URL

The URL to be opened by the shortcut.

Type: Uri
Parameter Sets: (All)
Aliases:

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

-Browser

The browser to use for the shortcut. Supported values are: - Chrome - Edge - Firefox - GoogleChrome - MicrosoftEdge - MozillaFirefox Defaults to `GoogleChrome`.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: GoogleChrome
Accept pipeline input: False
Accept wildcard characters: False

-RunInAppMode

A switch parameter that, when specified, runs the shortcut in app mode (if supported by the browser).

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: False
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

OUTPUTS

NOTES