Uninstall-ContainerOSImage
Uninstall-ContainerOSImage
Uninstalls the container operating system image.
語法
Parameter Set: ByContainerImage
Uninstall-ContainerOSImage [-ContainerImage] <Object> [-Force] [ <CommonParameters>]
Parameter Set: ByName
Uninstall-ContainerOSImage [-ImageName] <String> [-Force] [ <CommonParameters>]
詳細描述
The Uninstall-ContainerOSImage cmdlet uninstalls the container operating system image.
參數
-ContainerImage<Object>
Specifies the operating system image that this cmdlet uninstalls.
別名 |
none |
必要項? |
true |
位置? |
1 |
預設值 |
none |
接受管線輸入? |
false |
接受萬用字元? |
false |
-Force
強制執行命令,不要求使用者確認。
別名 |
none |
必要項? |
false |
位置? |
named |
預設值 |
none |
接受管線輸入? |
false |
接受萬用字元? |
false |
-ImageName<String>
Specifies the name of the operating system image that this cmdlet uninstalls.
別名 |
none |
必要項? |
true |
位置? |
1 |
預設值 |
none |
接受管線輸入? |
false |
接受萬用字元? |
false |
<CommonParameters>
這個指令程式支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
輸入
輸入類型是可透過管道傳送至指令程式的物件類型。
輸出
輸出類型是指令程式所發出的物件類型。
範例
Example 1: Remove a base operating system image
This command removes the base operating system image named WindowsServerCore.
PS C:\> Uninstall-ContainerOSImage -ContainerImageName "WindowsServerCore"