Yesterday, posted quietly as KB article 968929, Microsoft officially released PowerShell 2.0

Why is that cool? Because now you can get PoSh 2 officially deployed to all your servers. And you get to “officially” use the coolest CmdLet in the bunch: New-WebServiceProxy

Now, if you were to just read the help about it, it doesn’t really seem all that interesting:

Creates a Web service proxy object that lets you use and manage the Web service in Windows PowerShell.

But I’m going to give you an awesome secret. There’s a webservice out there unlike any other. If you want to sell PoSh to your coworkers, this is the way to do it.

What is it?

WebServiceX_logo

WebServiceX.Net provides On Demand XML Web Services for Financial,Distribution, Retail, Health Care, Manufacturing, Telecom, Government and Educational Industry.

So, what’s the mean to us?

Well using our shiny new cmdLet and a few lines of code we can instantly access data for over 70 different services. So really it comes down to “What do you want to do?”

Get the weather? No problem.

1
2
$usWeather = New-WebServiceProxy uri http://www.webservicex.net/WeatherForecast.asmx?wsdl”
$usWeather.GetWeatherByZipCode(55408)

BAM. Done.

Oh, you don’t live in the US? No worries either.

Lets see how the weather of a certain favorite MS employee is.

1
2
3
$weather = New-WebServiceProxy uri "http://www.webservicex.net/globalweather.asmx?wsdl”
$weather.GetWeather(Amsterdam, Netherlands)

Amsterdamweather

Wow, Stefan better grab a coat, it’s chilly there.

Ok, those were interesting in an ‘yeah, I’ve seen that before’ way – but what else?

A simple-as-pie domain whois? You know it’s there.

1
2
3
$whois = New-WebServiceProxy uri http://www.webservicex.net/whois.asmx?wsdl”
$whois.GetWhois(Pavleck.Net)

PavleckNetWhois

BAM!

Next?

How about searching Lloyd’s for the risk code for a given item. Sure, we got it.

1
2
$lloyds = New-WebServiceProxy -uri "http://www.webservicex.net:85/LloydsRiskCodeService.asmx?wsdl"
$lloyds.GetLloydsRiskCodeDetailByRiskCodeDescription('OVERSEAS LEG TERRORISM PROPERTY')

LloydsRiskCode

BAM!

Apparently it’s risk code is 6T. No idea what that all means.

I could go on all day – there is so much information out there. From Acceleration Unit Converters, Sunset and Sunrise times, RSS Readers, Translation services, Barcode generation, Text to Braille – hell, it’ll even let you send Free SMS messages and Faxes to anyone!

As you can tell, it’s a pretty expansive list, with many options and a whole ton of data. Not always what you want when you’re trying to do a little Posh-Fu. So that’s why I’m working on a little script for you to dot source, one that “PoShifies” these various services and gives you a lot more options on the command line – look for that soon!

Oh, and before I forget – be sure to check out the PowerScripting Podcast tomorrow night because you’re in for a treat! Me, Marco Shaw, Marcus Oh and Scott Moss will be giving a little panel discussion about PowerShell in OpsMgr – the Command Shell as we’ve come to call it. So come listen in, ask some questions, and maybe win some sweet sweet schwag!

 

Two awesome events are happening tonight. I’ll be at both, come join me!

The first is the second meeting of the System Center Virtual User Group – Register to attend.
It begins 7pm CST (1am GMT) and the agenda is:
7:00PM-7:10PM: Introduction – Pete Zerger (Of SystemCenterForum.org)
7:10PM-7:40PM: Steve Rachui – Targeting in Operations Mananger 2007.
7:40PM-8:10PM: Cameron Fuller – Community Extensions for Operations Mananger 2007.
8:10PM-8:40PM: Pete Zerger – SNMP Device Monitoring in Operations Mananger 2007.
8.40PM-8:55PM: Closing – Pete Zerger

Logo for Google Calendar invite

The invitation has all the other information you need. This is a Live Meeting event, and dial in audio information is provided.

EDITED: Thanks for the additional info, Hal!

The second meeting happening today is episode 40 of the PowerScripting Podcast. This will also be the second (Or is it third?) time Hal and crew stream the show live!
If you can’t make it to the live UStream broadcast, be sure to subscribe to the podcast and get your weekly dose of PoShy goodness.
Along with the usual suspects of Hal, Joel and Jon, they have an extra-special guest this week; none other then the great Jeffrey Snover, one of the PowerShell architects. He’ll be taking your questions, so this would be a great time to ask about what’s new in v2, or why remote registry support sucks.

That all starts tonight at 9PM EST – so get your browsers ready to watch Hal and his beard. And if your place of work doesn’t block social networking sites, be sure to RSVP to the invite on FaceBook.

Logo for Google Calendar invite

© 2012 Pavleck.NET Suffusion theme by Sayontan Sinha