ESX Category
Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations
Step 1: Retrieve a object by running a Get command
# Display all image profiles from depots and all image profiles the user created during this PowerCLI session:
Get-EsxImageProfile
Step 2 : Run commands from the CRUD group
# Clone an image profile, give it a new name, and change the acceptance level. (NOTE: The '\' is used to continue the second line of input; either press ENTER after \ or enter everything on one line without the '\').
New-EsxImageProfile -CloneProfile "ESX-5.0-234567-standard" \ -Name "My custom profile" -AcceptanceLevel CommunitySupported
# Associate the "MyImage" image profile with the hosts named "h1" and "h2".
Set-ESXImageProfileAssociation "MyImage" "h1","h2"
# Remove image profile "My custom profile".
Remove-EsxImageProfile -ImageProfile "My custom profile"
Step 3: Explore More Related Commands:
Add-EsxSoftwareDepot | |
Add-EsxSoftwarePackage | |
Compare-EsxImageProfile | |
Export-EsxImageProfile | |
Get-EsxSoftwareDepot | |
Get-EsxSoftwarePackage | |
Remove-EsxSoftwareDepot | |
Remove-EsxSoftwarePackage | |
Set-EsxImageProfile | |
Get-EsxCli | This cmdlet exposes the ESXCLI functionality. |
Get-EsxTop | This cmdlet exposes the esxtop functionality. |