Shay Levy recently wrote an article in PowerShell Magazine that leveraged PowerShell to determine the differences in PowerShell 2 vs PowerShell 3. I took his script, made a few small modifications, and used it in the same way to determine the differences between PowerCLI 4.1 U1 and PowerCLI 5.0. I also added the extra step […]
PowerShell
Quick tip: PowerShell here-strings don’t like whitespace
Today I was writing a bit of raw XML to be used as a SOAP message. Being a person who enjoys writing easy to read code, I declared my variable using here-string notation, pasted in the appropriate XML between the @” and “@, making sure to indent everything along the way including the last “@. […]
Some tips for writing your first PowerShell cmdlets & modules
A while back, I wrote a bit of a rant about the difficulties in finding helpful resources on writing PowerShell 2.0 cmdlets in C#. In case you hadn’t read it, my point was that there’s literally tons of great resources on authoring PowerShell scripts, but very little comparatively on how to author your own binary […]
PowerShell module for VIO-4001/4004
As I’ve mentioned before, I work as a sales engineer for Virtensys, a company that provides a very cool PCIe-based I/O virtualization appliance. Lately I’ve been working on an unofficial project to develop PowerShell cmdlets that will allow the provisioning of virtual I/O to servers connected to our VIO appliances. Here’s a *very* informal demo […]
C#, WSDL, PowerShell cmdlets — Oh my!
Lately I’ve been working on trying to author PowerShell cmdlets with Visual Studio 2010 to talk to a web service. At first glance, I thought it would be easy. I had the WSDL and XSD files, and the webservice side of things is already working. There’s a web GUI that communicates via SOAP to the […]