RemoveComputerCommand.Force Property

Gets and sets the value of the Force parameter of the Remove-Computer cmdlet. This property is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)

Usage

'Usage
Dim instance As RemoveComputerCommand
Dim value As SwitchParameter

value = instance.Force

instance.Force = value

Syntax

'Declaration
<ParameterAttribute> _
Public Property Force As SwitchParameter
[ParameterAttribute] 
public SwitchParameter Force { get; set; }
[ParameterAttribute] 
public:
property SwitchParameter Force {
    SwitchParameter get ();
    void set (SwitchParameter value);
}
/** @property */
public SwitchParameter get_Force ()

/** @property */
public void set_Force (SwitchParameter value)
public function get Force () : SwitchParameter

public function set Force (value : SwitchParameter)

Property Value

When the parameter is specified, the cmdlet does not display confirmation requests before it removes the computer.

Remarks

This topic is included in this SDK for completeness only. For more information about this cmdlet, see Remove-Computer in the Microsoft TechNet library.

For Help at the command line, type:

get-help remove-computer

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

RemoveComputerCommand Class
RemoveComputerCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK