Guest User

Untitled

a guest
Dec 14th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. $servers = @(
  2. 'foo1.sandbox.local'
  3. 'foo2.sandbox.local'
  4. 'foo3.sandbox.local'
  5. )
  6.  
  7. foreach ($server in $servers) {
  8. "{0}`t{1}" -f $server, [System.Net.Dns]::GetHostAddresses($server).IPAddressToString
  9. }
Add Comment
Please, Sign In to add comment