Windows PowerShell command on Get-command Uninstall-Package
MyWebUniversity

Windows PowerShell command on Get-command Uninstall-Package

NAME

Uninstall-Package

SYNOPSIS

Uninstalls one or more software packages.

SYNTAX

Uninstall-Package [-AdditionalArguments ] [-AllVersions] [-Confirm] [-Force] [-ForceBootstrap] [-WhatIf]

[]

Uninstall-Package [-AdditionalArguments ] [-AllVersions] [-Confirm] [-Force] [-ForceBootstrap] [-WhatIf]

[]

Uninstall-Package [-AllVersions] [-AllowClobber] [-Confirm] [-Force] [-ForceBootstrap] [-InstallUpdate]

[-NoPathUpdate] [-PackageManagementProvider ] [-Scope {CurrentUser | AllUsers}] [-SkipPublisherCheck]

[-Type {Module | Script | All}] [-WhatIf] []

Uninstall-Package [-AllVersions] [-AllowClobber] [-Confirm] [-Force] [-ForceBootstrap] [-InstallUpdate]

[-NoPathUpdate] [-PackageManagementProvider ] [-Scope {CurrentUser | AllUsers}] [-SkipPublisherCheck]

[-Type {Module | Script | All}] [-WhatIf] []

Uninstall-Package [-AllVersions] [-Confirm] [-Destination ] [-ExcludeVersion] [-Force] [-ForceBootstrap]

[-Scope {CurrentUser | AllUsers}] [-SkipDependencies] [-WhatIf] []

Uninstall-Package [-AllVersions] [-Confirm] [-Destination ] [-ExcludeVersion] [-Force] [-ForceBootstrap]

[-Scope {CurrentUser | AllUsers}] [-SkipDependencies] [-WhatIf] []

Uninstall-Package [-AllVersions] [-Confirm] [-Force] [-ForceBootstrap] [-IncludeSystemComponent]

[-IncludeWindowsInstaller] [-WhatIf] []

Uninstall-Package [-AllVersions] [-Confirm] [-Force] [-ForceBootstrap] [-IncludeSystemComponent]

[-IncludeWindowsInstaller] [-WhatIf] []

Uninstall-Package [-InputObject] [-AllVersions] [-Confirm] [-Force] [-ForceBootstrap]

[-WhatIf] []

Uninstall-Package [-Name] [-AllVersions] [-Confirm] [-Force] [-ForceBootstrap] [-MaximumVersion

] [-MinimumVersion ] [-ProviderName {msi | NuGet | msu | Programs | PowerShellGet | psl |

chocolatey}] [-RequiredVersion ] [-WhatIf] []

DESCRIPTION

The Uninstall-Package cmdlet uninstalls one or more software packages from the local computer.

PARAMETERS

-AdditionalArguments

Specifies additional arguments. Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false

-AllVersions []

Indicates that this cmdlet uninstalls all versions of the package. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-AllowClobber []

@{Text=} Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-Confirm []

Prompts you for confirmation before running the cmdlet. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-Destination

{{Fill Destination Description}} Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false

-ExcludeVersion []

{{Fill ExcludeVersion Description}} Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-Force []

Forces the command to run without asking for user confirmation. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-ForceBootstrap []

Forces Package Management to automatically install the package provider for the specified package. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-IncludeSystemComponent []

Specifies that this cmdlet uninstalls system components. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-IncludeWindowsInstaller []

Indicates that this cmdlet uninstalls the package through Windows Installer. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-InputObject

Specifies a package by using the package's SoftwareIdentity type, which is shown in the results of the

Get-Package cmdlet.

Required? true Position? 0 Default value None Accept pipeline input? True (ByValue) Accept wildcard characters? false

-InstallUpdate []

Indicates that this cmdlet uninstalls updates. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-MaximumVersion

Specifies the maximum allowed version of the package that you want to uninstall. If you do not specify this

parameter, this cmdlet uninstalls the highest-numbered available version of the package on the computer.

Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false

-MinimumVersion

Specifies the minimum allowed version of the package that you want to uninstall. If you do not add this

parameter, Uninstall-Package uninstalls the newest available version of the package that also satisfies any

maximum version specified by the MaximumVersion parameter. Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false

-Name

Specifies one or more package names. Multiple names must be separated by commas. Required? true Position? 0 Default value None Accept pipeline input? False Accept wildcard characters? false

-NoPathUpdate []

@{Text=} Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-PackageManagementProvider

Specifies the Package Management provider. Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false

-ProviderName

Specifies one or more package provider names to which to scope your package search. You can get package

provider names by running the Get-PackageProvider cmdlet.

Required? false Position? named Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-RequiredVersion

Specifies the exact allowed version of the package that you want to uninstall. If you do not add this parameter, this cmdlet installs the newest available version of the package (subject to any maximum specified version, if you've added the MaximumVersion parameter). Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false

-Scope

Specifies the scope at which to uninstall the package. The acceptable values for this parameter are:

- CurrentUser

- AllUsers

Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false

-SkipDependencies []

{{Fill SkipDependencies Description}} Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-SkipPublisherCheck []

@{Text=} Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false

-Type

Specifies whether to search for packages with a module, a script, or both. The acceptable values for this parameter are:

- Module

- Script

- All

Required? false Position? named 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. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false 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

You cannot pipe input to this cmdlet.

OUTPUTS

This cmdlet does not generate any output.

NOTES

Example 1: Uninstall a package

PS C:\>Uninstall-Package -Name "DSCAccelerator"

This command uninstalls a package named DSCAccelerator.

Example 2: Uninstall a package by piping results of Get-Package

PS C:\>Get-Package -Name "DSCAccelerator" -RequiredVersion "2.1.2" | Uninstall-Package -Force

This command uninstalls a package named DSCAccelerator by first locating the exact package with the Get-Package

cmdlet, then piping the results of Get-Package to the Uninstall-Package cmdlet. The Force parameter ensures that

you are not prompted to confirm that you want to uninstall the package.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=517142 about_PackageManagement

Find-Package

Get-Package

Install-Package

Save-Package



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™