Remove-DrsRule

This cmdlet removes the specified DRS rules.

Syntax

-Rule  <DrsRule[]>
[-RunAsync]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Rule
DrsRule[] named
  • pipeline
  • Specifies the DRS rules you want to remove.
    optional
    RunAsync
    SwitchParameter named Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter run "help About_RunAsync" in the VMware PowerCLI console.

    Output

    Examples


    Example 1

    $rules = Get-DrsRule -Cluster $cluster -Name "*Rule1*"
    Remove-DrsRule $rules -Confirm:$false

    Removes the DRS rules for the $cluster cluster, whose names contain "Rule1".

    Related Commands

    Feedback

    Was this page helpful?