VMware Cloud Community
RajuVCP
Hot Shot
Hot Shot

Need script to list host added in domain or not

Hi All,

I was looking for the script which will show list of esxi host added in domain.

These days am seeing esxi host get removed from Domain.

Thanks in Advance all.

Raju Gunnal VCP 4, VCP 5, VTSP 4, VTSP 5, ITIL V3 http://www.techtosolution.com
Tags (4)
0 Kudos
3 Replies
LucD
Leadership
Leadership

Try like this

Get-VMHost | Get-VMHostAuthentication | select @{N='ESX';E={$_.VMHost.Name}},Domain


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
UmeshAhuja
Commander
Commander

Hi ,

There is a very beautiful tool available in market known as RVTools. By running this tools you get a very good and high level of information in every manner of VMware say Datastore , host , VM , etc.

When you will run this tool to generate a report in that you will get Host tab sheet wherein you will get all details related to host and the detail what you required.

According to me its a safe tool compare to scripting as scripting can provide error on wrong parameters if insert.

Thanks n Regards
Umesh Ahuja

If your query resolved then please consider awarding points by correct or helpful marking.
0 Kudos
LucD
Leadership
Leadership

Although I'm a big fan of RVTools, you did notice that this is the PowerCLI community under the Automation Tools folder :smileygrin:


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos