8.0

Table Of Contents
n Format any variable and cmdlet output by using Format-List or Format-Table, or their
short forms fl or ft. For more information, run the Get-Help Format-List cmdlet.
Passing Parameters by Name
You can pass in parameters by name in most cases and surround parameter values that contain
spaces or special characters with double quotes.
Copy-DeployRule -DeployRule testrule -ReplaceItem MyNewProfile
Most examples in the
vCenter Server Installation and Setup
documentation pass in parameters by
name.
Passing Parameters as Objects
You can pass parameters as objects if you want to perform scripting and automation. Passing in
parameters as objects is useful with cmdlets that return multiple objects and with cmdlets that
return a single object. Consider the following example.
1 Bind the object that encapsulates rule set compliance information for a host to a variable.
$tr = Test-DeployRuleSetCompliance MyEsxi42
2 View the itemlist property of the object to see the difference between what is in the rule set
and what the host is currently using.
$tr.itemlist
3 Remediate the host to use the revised rule set by using the Repair-
DeployRuleSetCompliance cmdlet with the variable.
Repair-DeployRuleSetCompliance $tr
The example remediates the host the next time you boot the host.
vSphere Auto Deploy PowerCLI Cmdlet Overview
You specify the rules that assign image profiles and host profiles to hosts using a set of PowerCLI
cmdlets that are included in PowerCLI.
If you are new to PowerCLI, read thePowerCLI documentation and review Using vSphere Auto
Deploy Cmdlets. You can get help for any command at the PowerShell prompt.
n Basic help: Get-Help
cmdlet_name
n Detailed help: Get-Help
cmdlet_name
-Detailed
Note When you run vSphere Auto Deploy cmdlets, provide all parameters on the command line
when you invoke the cmdlet. Supplying parameters in interactive mode is not recommended.
VMware ESXi Installation and Setup
VMware, Inc. 128