Uninstall-PswaWebApplication
Uninstall-PswaWebApplication
Uninstalls the Windows PowerShell® web application.
構文
Parameter Set: Default
Uninstall-PswaWebApplication [[-WebApplicationName] <String> ] [-DeleteTestCertificate] [-WebSiteName <String> ] [-Confirm] [-WhatIf] [ <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.
パラメーター
-DeleteTestCertificate
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.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
true |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WebApplicationName<String>
Specifies the name of the web application to uninstall.
エイリアス |
なし |
必須? |
false |
位置は? |
1 |
既定値 |
pswa |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WebSiteName<String>
Specifies the name of the web site where the web application is installed.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
Default Web Site |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
EXAMPLE 1
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
EXAMPLE 2
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 -DeleteTestCertificate
EXAMPLE 3
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.
PS C:\> Uninstall-PswaWebApplication -WebApplicationName TestApplication -WebsiteName MySite -DeleteTestCertificate