Skip to main content

Set-LAPSshortcut

SYNOPSIS

Sets LAP Sshortcut.

SYNTAX

Set-LAPSshortcut [-Path] <String> [-WhatIf] [-Confirm]
[<CommonParameters>]

DESCRIPTION

Sets LAP Sshortcut.

EXAMPLES

EXAMPLE 1

Set-LAPSshortcut PublicDesktop
Shows how to setup the LAPS shortcut on the Public Desktop.

EXAMPLE 2

Set-LAPSshortcut UserDesktop
Shows how to setup the LAPS shortcut on the logged on users desktop.

EXAMPLE 3

Set-LAPSshortcut -Path PublicDesktop
Shows how to setup the LAPS shortcut on the Public Desktop.

EXAMPLE 4

Set-LAPSshortcut -Path UserDesktop
Shows how to setup the LAPS shortcut on the logged on users desktop.

PARAMETERS

-Path

Specifies whether to save to the Public Desktop or the logged on users desktop.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
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

OUTPUTS

None

NOTES

ALIASES

None.

PLATFORM APPLICABILITY

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Set-LAPSshortcut