Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $servers = @(
- 'foo1.sandbox.local'
- 'foo2.sandbox.local'
- 'foo3.sandbox.local'
- )
- foreach ($server in $servers) {
- "{0}`t{1}" -f $server, [System.Net.Dns]::GetHostAddresses($server).IPAddressToString
- }
Add Comment
Please, Sign In to add comment