external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|
Microsoft.Management.UI.PowWA.Commands.dll-help.xml |
PowerShellWebAccess |
10/30/2017 |
2.0.0 |
Uninstall-PswaWebApplication |
Uninstalls the Windows PowerShell® web application.
Uninstall-PswaWebApplication [[-WebApplicationName] <String>] [-WebSiteName <String>] [-DeleteTestCertificate]
[-WhatIf] [-Confirm] [<CommonParameters>]
The Uninstall-PswaWebApplication cmdlet uninstalls the Windows PowerShell web application and removes the website from IIS. The cmdlet does not uninstall IIS, or any other features installed because they were required for Windows PowerShell to run.
PS C:\>Uninstall-PswaWebApplication
This command uninstalls the Windows PowerShell Web Application. You can use this cmdlet to uninstall the Windows PowerShell Web Application if you installed it using the default values.
PS C:\>Uninstall-PswaWebApplication -DeleteTestCertificate
This command uninstalls the Windows PowerShell Web Application, and deletes the test certificate associated with the application. You can use this cmdlet to uninstall the Windows PowerShell Web Application if you installed it using the default values and created a test certificate.
PS C:\> Uninstall-PswaWebApplication -WebApplicationName TestApplication -WebsiteName MySite -DeleteTestCertificate
This command uninstalls the Windows PowerShell Web Application when a custom website and application were specified during the install. The command removes the website named MySite and the application named TestApplication and specifies that the test certificates associated with the application are also deleted.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the test certificates created by the Install_PswaWebApplication cmdlet (with the UseTestCertificate parameter) is deleted. Only the test certificate with the same name as the one created by the Install-PswaWebApplication cmdlet is removed.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
Specifies the name of the web application to uninstall.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: Pswa
Accept pipeline input: False
Accept wildcard characters: False
Specifies the name of the web site where the web application is installed.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Default Web Site
Accept pipeline input: False
Accept wildcard characters: False
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: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).