The Add-HyperVClusterSharedVirtualDisks
cmdlet lets you add shared Hyper-V virtual disks under the protection of a Core.
The usage for the command is as follows:
Add-HyperVClusterSharedVirtualDisks -core [host name] -user [user name] -password [password] -repository [name] -shareddisks [shared virtual disks name or path collection | all]
The following table describes the options available for the Add-HyperVClusterSharedVirtualDisks
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. |
-repository |
Required. The name of the repository that is associated with the Core that you want to use to store the data of the virtual machine.
Note: You must enclose the name in double quotes. |
-protectedserver |
Use this option to edit the shared virtual disks for a specific protected machine. |
-shareddisks |
A list of shared disks each separate by a comma. |
Protect all of the shared virtual disks on a cluster:
>Add-HyperVClusterSharedVirtualDisks -protectedserver "HV-2012R2" -repository "Repository_10.10.55.133" -shareddisks "all"
The Add-HyperVClusterVirtualMachines
cmdlet lets you add specific virtual machines (VMs) from a Hyper-V cluster under the protection of a Core.
The usage for the command is as follows:
Add-HyperVClusterVirtualMachines -core [host name] -user [user name] -password [password] -repository [name] -protectedserver [name | IP address] -virtualmachines [virtual machines collection | all]
The following table describes the options available for the Add-HyperVClusterVirtualMachines
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. |
-repository |
Required. The name of the repository that is associated with the Core that you want to use to store the data of the virtual machine.
Note: You must enclose the name in double quotes. |
-protectedserver |
Use this option to protect virtual machines. |
-virtualmachines |
A list of the virtual machines that you want to protect, each separated by a comma. The name of the VM must be enclosed in double quotes. |
Add specific VMs of a Hyper-V cluster under protection by the Core:
>Add-HyperVClusterVirtualMachines -repository "Repository 1" -protectedserver hvcluster -virtualmachines "Win8x64-gen1", "Win2012x64-gen2"
The Add-HyperVVirtualMachines
cmdlet lets you add specific virtual machines (VMs) from a Hyper-V cluster under the protection of a Core.
The usage for the command is as follows:
Add-HyperVVirtualMachines -core [host name] -user [user name] -password [password] -repository [name] -protectedserver [name | IP address] -virtualmachines [virtual machines collection | all]
The following table describes the options available for the Add-HyperVVirtualMachines
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. |
-repository |
Required. The name of the repository that is associated with the Core that you want to use to store the data of the virtual machine.
Note: You must enclose the name in double quotes. |
-protectedserver |
Use this option to edit Hyper-V objects for a specific virtual machine. |
-virtualmachines |
A list of the virtual machines that you want to protect, each separated by a comma. The name of the VM must be enclosed in double quotes. |
Add specific VMs of a Hyper-V cluster under protection by the Core:
>Add-HyperVVirtualMachines -repository "Repository 1" -protectedserver HVServer1 -virtualmachines "Win8x64-gen1", "Win2012x64-gen2"
The Disable-HyperVAutoProtection
cmdlet lets you disable the auto-protection feature, which automatically protects new virtual machines (VMs), on a Hyper-V host.
The usage for the command is as follows:
Disable-HyperVAutoProtection -core [host name] -user [user name] -password [password] -protectedserver [name | IP address]
The following table describes the options available for the Disable-HyperVAutoProtection
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 |
The display name, host name, or IP address of the protected Hyper-V server. |
Disable auto protection of new virtual machines on the specified Hyper-V host:
>Disable-HyperVAutoProtection -protectedserver "10.10.1.1"
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center