< Back
Uninstall-Script
Post
NAME Uninstall-Script
SYNOPSIS
Uninstalls a script file.
SYNTAX
Uninstall-Script [-InputObject] <PSObject[]> [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]
Uninstall-Script [-Name] <String[]> [-Confirm] [-Force] [-MaximumVersion <Version>] [-MinimumVersion <Version>] [-RequiredVersion <Version>] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
The Uninstall-Script cmdlet uninstalls the specified script files from the online gallery.
PARAMETERS
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
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
-InputObject <PSObject[]>
{{Fill InputObject Description}}
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-MaximumVersion <Version>
Specifies the maximum, or newest, version of the script to uninstall. The MaximumVersion and RequiredVersion parameters are mutually exclusive; you
cannot use both parameters in the same command.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-MinimumVersion <Version>
Specifies the minimum version of the script to uninstall. The MinimumVersion and RequiredVersion parameters are mutually exclusive; you cannot use
both parameters in the same command.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String[]>
Specifies an array of names of scripts to uninstall.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-RequiredVersion <Version>
Specifies the exact version number of the script to uninstall.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
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
<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).
INPUTS
OUTPUTS
NOTES
Example 1: Uninstall a script file
PS C:\\>Uninstall-Script -Name "MyScript" -RequiredVersion 2.5
This command uninstalls version 2.5 of the script file named MyScript.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=822338
Find-Script
Install-Script
Publish-Script
Save-Script
Update-Script
SYNOPSIS
Uninstalls a script file.
SYNTAX
Uninstall-Script [-InputObject] <PSObject[]> [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]
Uninstall-Script [-Name] <String[]> [-Confirm] [-Force] [-MaximumVersion <Version>] [-MinimumVersion <Version>] [-RequiredVersion <Version>] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
The Uninstall-Script cmdlet uninstalls the specified script files from the online gallery.
PARAMETERS
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
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
-InputObject <PSObject[]>
{{Fill InputObject Description}}
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-MaximumVersion <Version>
Specifies the maximum, or newest, version of the script to uninstall. The MaximumVersion and RequiredVersion parameters are mutually exclusive; you
cannot use both parameters in the same command.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-MinimumVersion <Version>
Specifies the minimum version of the script to uninstall. The MinimumVersion and RequiredVersion parameters are mutually exclusive; you cannot use
both parameters in the same command.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String[]>
Specifies an array of names of scripts to uninstall.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-RequiredVersion <Version>
Specifies the exact version number of the script to uninstall.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
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
<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).
INPUTS
OUTPUTS
NOTES
Example 1: Uninstall a script file
PS C:\\>Uninstall-Script -Name "MyScript" -RequiredVersion 2.5
This command uninstalls version 2.5 of the script file named MyScript.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=822338
Find-Script
Install-Script
Publish-Script
Save-Script
Update-Script