Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: Script to list all local accounts on each ESXi host for security checking

$
0
0

nevermind i found the solution in another thread:

 

$user="root"
$pswd
="password"

Get-VMHost
|%{
 
$esx=Connect-VIServer$_.Name-User$user-Password$pswd
  Get-VMHostAccount-Server$esx|
 
Select@{N="Host";E={$esx.Name}},@{N="Uid";E={$_.ExtensionData.Id}},Id,@{N="Name";E={$_.ExtensionData.FullName}}
 
Disconnect-VIServer-Server$esx-Confirm:$false
}


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>