PowerShell Team

Automating the world one-liner at a time…

Latest posts

Jun 24, 2007
Post comments count 0
Post likes count 0

VBScript -> PowerShell

Steve Lee

Are you a VBscripter in the process of becoming a PowerShell scripter? Once you become a PowerShell scripter, you'll find incredible gains in productivity but first you have to becoming a PowerShell scripter. There are a few things that can help. First and foremost is PowerShell's interactive nature. This allows you to quickly and easily experiment, fumble around, see what works, and then turn it into a script. But what about when your brain just "thinks VBscript"? There are a number of documentation approaches that help with this. The scripting guys over at ScriptCenter wrote the Converting VBScript Commands t...

Jun 23, 2007
Post comments count 0
Post likes count 0

Even More PowerShell Training

Steve Lee

The 2 day course PYGPOWER – PowerShell for Administrators is being offered in London by Pygmalion. I've been told by a couple of sources that the European demand for PowerShell training is huge – even more so than in the US. I would love to hear any theories about why this is so. With that, I'll have to tell you one of my favorite jokes. Q: What's the difference between Europe and America? A: In Europe, they think a 100 miles is a long distance,. In America, they think a 100 years is a long time. This is funny because it is so true. Cheers! Jeffrey Snover [MSFT] Windows Management Partner Architect Vi...

Jun 23, 2007
Post comments count 0
Post likes count 0

PowerShell Community Extensions (PSCX) V1.1.1

Steve Lee

Keith Hill reports in his blog HERE , that the PowerShell Community Extensions project has release Version 1.1.1. If you aren't already turned on to PSCX, this is a good time to start. This is a maintenance release which resolves 30 issues but it also adds 5 new features. I'm going to include their Help topic below so you can get a feel for what it does. I think most people will find something there that will tempt them. One thing to note, when you dot-source PSCX's profile, it customizes your environment to a pretty extensive degree. If you already have some customizations that you like (like your own prompt),...

Jun 21, 2007
Post comments count 0
Post likes count 0

Hosting PowerShell in a GUI – the Movie

Steve Lee

You've just got to stop and take 4 minutes to watch David Aiken's demonstration of how easy it is to host PowerShell in a GUI. Seriously, it is a 4 minute video! Even if you aren't a developer, it is worth looking at so you understand the concept and the work involved and then you can use that to demand your vendors provide you this function! J (In all honesty, a bunch of you will see how easy it is and decide that you can do it yourself so give it a view). < Updating to include "this thingamajig called 'links'". Doh!!!!! "asdfasdf" - you should have included your real name - that one was worth taking credi...

Jun 20, 2007
Post comments count 0
Post likes count 0

Figuring Things Out

Steve Lee

In my last blog entry, I showed how a script can get the directory it resides in. Jvierra commented: So being a team member doesn't make one know everything. Sad but true! The interesting thing about this is that at some point I knew this information but then I forgot it so I had to figure it out again. It reminded me of a 2 studies made of Unix Admins made about 20+ years apart that both reached the same conclusion. If you take a range of novice to expert Unix admins and put them in a class room and ask them a set of questions, there is a surprising small delta between the performances of these admins (it exi...

Jun 20, 2007
Post comments count 0
Post likes count 0

PowerShell Analyzer is Now Available for Purchase

Steve Lee

Karl Prosser has been doing great things with PowerShell Analyzer for quite some time now and has finally decided to join forces with Dr. Tobias Weltner and go commercial with it. Given the amazing amount of time and creative thinking that Karl has put into this, I hope it goes very well for him. Tobias has been involved in the scripting space for years and had developed PowerShellIDE. Together, they have set up shop at http://PowerShellLive.Com which has lot of good scripting information and where you can now pre-order PowerShellIDE at ½ the selling price. You can read more details about the offer HERE. You can ...

Jun 20, 2007
Post comments count 0
Post likes count 0

Demo SQL Provider Code

Steve Lee

Hi, Attached is the code we used today in the Web cast for the SQL demo provider. Please note this is not a SQL management provider. It simply allows you to query data from a SQL server directly from the cmd line. Install the Snapin: PS>$env:Windir\Microsoft.NET\Framework\v2.0\.50727\InstallUtil.exe SQLProvider.dll Add the snapin to your session: PS>Add-PsSnapin SqlPrototypeProvider You can use it as follows: PS>cd SQL: SQL:>cd MySQLServer SQL:>dir master tempdb model msdb pubs Northwind SQL:>cd Northwind SQL:>dir name ---- Categories CustomerCustomerDemo CustomerDemographics Customers dt...

Jun 17, 2007
Post comments count 0
Post likes count 0

Using a DSL to generate XML in PowerShell

Steve Lee

A while back, Jeffrey posted an article on how to use string expansion and XML casts to build XML documents in-line in a PowerShell script: http://blogs.msdn.com/powershell/archive/2007/05/29/using-powershell-to-generate-xml-documents.aspx The overall feel of the approach that Jeffrey described is very much like that of ASP, JSP, PHP on any of the other systems that use “holes” to embed code to dynamically generate document content within the document itself. Ari over at the Windows Core Networking blog had some concerns about this approach for various reasons. You can see his comments at: http://blogs.msdn.co...

Jun 13, 2007
Post comments count 0
Post likes count 0

WMI, PowerShell – How well do they gel?

Steve Lee

< Kapil Mathur is in the process of learning PowerShell to work with WMI and wrote up his findings to date – jps> Automating admin scenarios using PowerShell The preferred scripting language for the WMI world has been vbscript. But if you are a windows administrator writing WMI scripts, chances are that you have been hearing another name lately- PowerShell. To compare the scripting experience in between the two, I tried out my hand at automating some admin scenarios by converting "vbscript" scripts into "PowerShell" scripts. I took two scripts from Alain Lissoir's book "Leveraging Windows Management Instrume...