Getting US ZIP Codes

by Oct 13, 2014

All PowerShell Versions

Ever wanted to find out the ZIP code of a city, or vice versa find out the city that belongs to a ZIP code?

Then simply ask PowerShell to connect to a free web service and get that information for you:

$webservice = New-WebServiceProxy -Uri ''
$webservice.GetInfoByCity('New York').Table

Twitter This Tip! ReTweet this Tip!