Remove-WebApplicationProxyApplication
Removes web applications published in Web Application Proxy.
Syntax
ID (Default)
Remove-WebApplicationProxyApplication
[-ID] <Guid[]>
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
Name
Remove-WebApplicationProxyApplication
[-Name] <String>
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
Description
The Remove-WebApplicationProxyApplication cmdlet removes web applications published in Web Application Proxy. Specify web applications by name or by ID. If you specify a string that contains wildcard characters, * and ?, as the name, the cmdlet removes all the web applications that match that string.
When you remove a web application, Web Application Proxy drops any current connections for that application. The cmdlet does not uninstall the application from its backend server.
Examples
Example 1: Remove all published applications
PS C:\> Remove-WebApplicationProxyApplication
This command removes all of the published web applications.
Example 2: Remove an application by using an ID
PS C:\> Remove-WebApplicationProxyApplication -ID 616b2e81-bada-4abc-996a-b0c806eb6f45
This command removes the application that has the specified ID.
Example 3: Remove an application by using a name
PS C:\> Remove-WebApplicationProxyApplication -Name "ContosoApp"
This command removes the application named ContosoApp.
Example 4: Remove applications that have names that contain a specified string
PS C:\> Remove-WebApplicationProxyApplication -Name "*Contoso*"
This command removes applications that have names that contain the string Contoso.
Parameters
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-CimSession
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Parameter properties
Type: | CimSession[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Session |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ID
Specifies an array of GUIDs of web applications.
Parameter properties
Type: | Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | ApplicationID |
Parameter sets
ID
Position: | 0 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Name
Specifies a friendly name for the published web application. You can use wildcard characters.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Name
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ThrottleLimit
Specifies the maximum number of concurrent operations that can be established to run the cmdlet.
If this parameter is omitted or a value of 0
is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Parameter properties
Type: | Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.