How can I get a list of all hosts that are NOT using active directory for local authentication in environment using powerCLI?
Try like this
Get-VMHost | Get-VMHostAuthentication |
where {$_.Domain -eq $null} |
Select @{N="Name";E={$_.VMHost.Name}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try like this
Get-VMHost | Get-VMHostAuthentication |
where {$_.Domain -eq $null} |
Select @{N="Name";E={$_.VMHost.Name}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
works perfectly thanks!