powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VMHostMatchingRules



NAME
Get-VMHostMatchingRules

SYNOPSIS
Retrieves the list of rules in the rule set that match a specified host.

SYNTAX
Get-VMHostMatchingRules [-VMHost] [-DeployRuleSet ] []


DESCRIPTION
Retrieves the list of rules in the rule set that match a specified host. You can use this cmdlet to debug your wor
king rule set before activating it.


PARAMETERS
-VMHost
The VMHost object to match against.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-DeployRuleSet
The set of rules to match against a host.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
VMware.DeployAutomation.Types.DeployRule[]


NOTES


The DeployRule object has the following properties:

Name System.String
Pattern DeployRule.Pattern[]
Items System.VIObject[]

-------------- Example 1 --------------

C:\PS> Get-VMHostMatchingRules h1


Get the list of rules that match host "h1".





-------------- Example 2 --------------

C:\PS> Get-VMHostMatchingRules (Get-VMHost "h1")


Get the list of rules that match host "h1".






RELATED LINKS
Get-DeployRuleSet
New-DeployRule