Automation

 View Only
  • 1.  Get-VMHostAdvancedConfiguration

    Posted Mar 26, 2009 03:45 PM

    Is there a way to return all Advanced config except a certain value.

    I know you can do

    get-vmhostadvancedconfiguration -name Misc

    but can't seem to find a way to return everything but Misc.CosCoreFile

    i've tried Get-VMHostAdvancedConfiguration -VMHost svr-vmh-crcla01.lbcamden.net | where {$_.Name -notlike "Misc.CosCoreFile"} but doesn't work



  • 2.  RE: Get-VMHostAdvancedConfiguration

    Posted Mar 26, 2009 04:04 PM

    solved it myself ...

    $VMHost = get-vmhost xxxxxxxx

    $HC = Get-VMHostAdvancedConfiguration -VMHost $VMHost

    $HC.Remove("Misc.CosCorefile")

    $HC | Out-File c:\scripts\testHash.txt