VMware Cloud Community
TheVMinator
Expert
Expert
Jump to solution

Show active directory authentication information with PowerCLI

How can I get a list of all hosts that are NOT using active directory for local authentication in environment using powerCLI?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
TheVMinator
Expert
Expert
Jump to solution

works perfectly thanks!

0 Kudos