Archives


More PowerShell stuff

Last year I started to write a small program in Perl to document the virtual infrastructures we encounter at client locations.
But since it’s all PowerShell it was time to start to write the same thing in PowerShell.

Although I do a lot with different scripting languages the PowerShell method was somewhat new to me. I mean, I’ve object passing in Delphi but the idea to be able to do this from the command line was another approach.
I’ve seen a lot of scripts and programs on the internet that do the same as what I’m doing, but with one difference: I’m doing it now :)
This way I’m learning a lot of the way how PowerShell does things. It makes it easier to script. Instead of writing 10 lines of code to get all VM’s you just do get-vm in PowerShell.

Ofcourse I ran into all kinds of problems, too much to mention in fact. As always was Google on of my best friends.. One of the blogs I found was from Wayne. It gives you some basic understanding of PowerShell and he placed some very nice articles about it:

http://waynes-world-it.blogspot.com/2008/12/useful-powershell-command-line.html
Ofcourse there are much much more articles and sites about PowerShell. Use Google and you’ll find it..

Go with the force, my young padawan

Google BookmarksEmailHyvesStumbleUponLinkedInShare

Related posts:

  1. VMware and PowerShell
  2. Managing VMware with PowerShell FAQ
  3. Creating portgroups with PowerShell
  4. Updating VMware tools without reboot
  5. VMware VI Toolkit Update to 1.5

Tags:

About

Anne Jan Elsinga is a Consultant for Imtech ICT in the Netherlands. He spends his working hours with a lot of virtualization stuff, from feasibility to implementation for server virtualization/consolidation and desktop virtualization. In 2009, 2010 and 2011 he was awarded with the VMware vExpert status. In the night time he dances latin, ballroom and salsa and he also discovered the pleasure of diving.

Comments are closed.