PowerShell 1.0 for Vista (and Virtualization tips too)

by Todd Ogasawara

PowerShellAs expected (hoped for?), PowerShell 1.0 for Windows Vista was released along with Vista. You can find the x86 (32-bit) and x64 (64-bit) versions for download at...

PowerShell 1.0 for Windows Vista x86 (x86)

PowerShell 1.0 for Windows Vista (x64)

You can also find an example of using PowerShell to get information about a Guest Operating System from Microsoft Virtual Server on the Virtual PC Guy's blog at...

Querying guest operating system information with Powershell

Finally, the Windows PowerShell Team Blog has a blog entry comparing Bash and PowerShell scripts that each perform the task of disconnecting a drive from a running virtual machine.

Virtual Machine Manager's PowerShell Support

The Bash script was taken from VMware's own website and is quite a bit longer than the PowerShell version. I wonder how long/complex a Python or Ruby version might be?

And, here's a link to the Port 25 blog item that led to my own series of PowerShell commentaries...

Watching a Community Grow - PowerShell

2 Comments


2007-02-02 22:15:37
Uh, is that bash script really longer? I mean, those "cmdlets" are just other scripts, or apps, right? Why not split the bash script into smaller parts? ...Are you seriously impressed by this?
Todd Ogasawara
2007-02-03 14:27:54
Anonymous: I don't see anyone commenting about being impressed. And, yes, the Bash script does appear longer to me. The PowerShell cmdlets appear to get information from methods (if that is the right term for PowerShell) from the Get-VM object (framework?) called in the first line. I assume this is an exposed object in the SCVMM. I'll let a PowerShell expert provide better insight on that.


Breaking up the Bash script wouldn't make it any shorter. I tend to recommend that people refactor from Bash (or csh or whatever) to Python or Ruby if a "simple" shell script becomes longer than a text editor's screen length to make it easier to maintain and more readable for others. Hence, my musing about a VMware script written in Python or Ruby.