Uninstall-Junction

Uninstall a junction.

Syntax

Uninstall-Junction [[-Path] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Uninstall-Junction removes a junction that may or may not exist, without errors.

If Path is not a direcory, you will see errors.

Uninstall-Junction is new in Carbon 2.0.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Path String

The path to the junction to remove.

false false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Uninstall-Junction -Path 'C:\I\Am\A\Junction'

Uninstall the C:\I\Am\A\Junction