Disable Placement Availability

HewlettPackard.Servers.ProLiant.SNMPPRO.DisablePlacementTask (ConsoleTask)

Disable the Host for Placement Availability.

Element properties:

TargetHewlettPackard.Servers.ProLiant.SNMPPRO.ManagedHost
Application\%windir\%\system32\WindowsPowerShell\v1.0\powershell.exe
WorkingDirectory
isRequireOutputTrue
AccessibilityPublic
EnabledTrue

Source Code:

<ConsoleTask ID="HewlettPackard.Servers.ProLiant.SNMPPRO.DisablePlacementTask" Accessibility="Public" Enabled="true" Target="HewlettPackard.Servers.ProLiant.SNMPPRO.ManagedHost" RequireOutput="true" Category="MonitoringObject">
<Application>%windir%\system32\WindowsPowerShell\v1.0\powershell.exe</Application>
<Parameters>
<Parameter>-command "&amp; {add-pssnapin Microsoft.SystemCenter.VirtualMachineManager; get-vmmserver $Target/Property[Type="PROLibrary!Microsoft.SystemCenter.VirtualMachineManager.Pro.2008.Base"]/VMMServer$ | out-null; get-vmhost -computername $Target/Property[Type="PROLibrary!Microsoft.SystemCenter.VirtualMachineManager.Pro.2008.Base"]/Name$ | set-vmhost -availableforplacement $false | select name,availableforplacement | fl}"</Parameter>
</Parameters>
<WorkingDirectory/>
</ConsoleTask>