The Remove-EsxAutoProtectObjects
cmdlet lets you remove specific objects on vCenter or ESXi server from protection by a Core.
Usage
The usage for the command is as follows:
Remove-EsxAutoProtectObjects -core [host name] -user [user name] -password [password] -protectedserver [name | IP address] -autoprotectobjects
Command Options
The following table describes the options available for the Remove-EsxAutoProtectObjects
command:
Option | Description |
---|---|
-? |
Display this help message. |
-core |
Optional. Remote Core host machine IP address (with an optional port number). By default the connection is made to the Core installed on the local machine. |
-user |
Optional. User name for the remote Core host machine. If you specify a user name, you also have to provide a password.
If none are provided, then the logged-on user's credentials will be used. |
-password |
Optional. Password to the remote Core host machine. If you specify a password, you also have to provide a log on.
If none are provided, then the logged-on user's credentials will be used. |
-protectedserver |
Use this option to edit the vCenter or ESXi objects for a specific protected machine. |
-autoprotectobjects |
A list of vCenter or ESXi objects each enclosed in double quotes and separated by a comma. |
Example:
Remove specific vCenter or ESXi objects from protection auto-protection by the Core:
>Remove-EsxAutoProtectObjects -protectedserver 10.10.8.150 -autoprotectobjects "vm1", "vm2"