How to Disable or Enable a Host for Placement

Applies To: System Center Essentials 2010

In System Center Essentials 2010, you can disable or enable a computer for placement as a virtual machine host by using the following Windows PowerShell scripts.

To disable a computer for placement as a virtual machine host

  1. Log on to the computer running the System Center Essentials 2010 management server.

    Note

    To complete the procedure, you have to know the name of the Essentials 2010 management server <sceServerName> and the name of the host computer <hostName> that you will enable or disable for placement.

  2. Click Start, click Programs, click System Center, click Microsoft System Center, click Virtual Machine Manager 2008 R2, and then click Windows PowerShell – Virtual Machine Manager.

  3. At the command prompt, type the following Windows PowerShell script.

    Get-VmmServer <sceServerName>
    Get-VMHost –ComputerName <hostName>| Set-VMHost –AvailableForPlacement $False
    

    The following Windows PowerShell script shows an example.

    Get-VmmServer sceserver1
    Get-VMHost –ComputerName scehost1| Set-VMHost –AvailableForPlacement $False
    
  4. The computer is marked as not available (disabled) for placement as an Essentials 2010 virtual machine host.

To enable a computer for placement as a virtual machine host

  1. Log on to the computer running the System Center Essentials 2010 management server.

    Note

    To complete the procedure, you have to know the name of the Essentials 2010 management server <sceServerName> and the name of the host computer <hostName> that you will enable or disable for placement.

  2. Click Start, click Programs, click System Center, click Microsoft System Center, click Virtual Machine Manager 2008 R2, and then click Windows PowerShell – Virtual Machine Manager.

  3. At the command prompt, type the following Windows PowerShell script.

    Get-VmmServer <sceServerName>
    Get-VMHost –ComputerName <hostName>| Set-VMHost –AvailableForPlacement $True
    

    The following Windows PowerShell script shows an example.

    Get-VmmServer sceserver1
    Get-VMHost –ComputerName scehost1| Set-VMHost –AvailableForPlacement $True
    
  4. The computer is marked as available (enabled) for placement as an Essentials 2010 virtual machine host.