Try something like this
Get-VMHost|
ForEach-Object-Process {
New-VMHostProfile-Name "$($_.Name)-Profile"-Description "This is my test profile based on $($_.Name))."-ReferenceHost $_-Confirm:$false
}
Try something like this
ForEach-Object-Process {
New-VMHostProfile-Name "$($_.Name)-Profile"-Description "This is my test profile based on $($_.Name))."-ReferenceHost $_-Confirm:$false
}