Skip to content

Instantly share code, notes, and snippets.

@mrlesmithjr
Last active January 8, 2017 11:33
Show Gist options
  • Save mrlesmithjr/7954840 to your computer and use it in GitHub Desktop.
Save mrlesmithjr/7954840 to your computer and use it in GitHub Desktop.
Gather all host network settings using PowerCli
#Provided by @mrlesmithjr
#EveryThingShouldBeVirtual.com
#
# Set variable for all hosts in current vCenter
$vmhosts = @(Get-VMHost)
foreach ($vmhost in $vmhosts) {
Get-NetworkAdapter $vmhost
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment