Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Viewing all articles
Browse latest Browse all 16717

need to check if a local account is available on each esxi host

$
0
0

trying to check what kind of local accounts are on the local esxi server

 

$cred = get-credential

$vmHOSTS = get-datacenter XXX | get-vmhost

foreach ($vmhost in $vmHOSTS) {

connect-viserver $vmhost -cred $cred

get-vmhostaccount | select Name, description, server

disconnect-viserver *

}

 

But I am not seeing any output


Viewing all articles
Browse latest Browse all 16717

Trending Articles



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