external help file | Module Name | online version | schema |
---|---|---|---|
Hyper-V_Cmdlets.xml |
Hyper-V |
2.0.0 |
Deletes a virtual switch.
Remove-VMSwitch [-Name] <String[]> [[-ResourcePoolName] <String[]>] [-ComputerName <String[]>] [-Force]
Remove-VMSwitch [-VMSwitch] <VMSwitch[]> [[-ResourcePoolName] <String[]>] [-Force]
The Remove-VMSwitch cmdlet deletes a virtual switch.
PS C:\>Remove-VMSwitch "QoS Switch"
Removes a virtual switch named Qos Switch.
Specifies one or more Hyper-V hosts on which the virtual switch is to be deleted. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer - use "localhost" or a dot (".") to specify the local computer explicitly.
Type: String[]
Parameter Sets: UNNAMED_PARAMETER_SET_1
Aliases:
Required: False
Position: Named
Default value: .
Accept pipeline input: False
Accept wildcard characters: False
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the name of the virtual switch to be deleted.
Type: String[]
Parameter Sets: UNNAMED_PARAMETER_SET_1
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: True
Specifies the name of the resource pool from which the switch is to be deleted.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
Specifies the virtual switch to be deleted.
Type: VMSwitch[]
Parameter Sets: UNNAMED_PARAMETER_SET_2
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False