Learn PowerShell in Under 30 Pages - Microsoft Switzerland to the Rescue
Microsoft Switzerland just translated into English, a PowerShell pdf designed to assist in the quest of PowerShell knowledge, I think? I may have been taken back a little by the loose translation. Here's the example: "An Introduction to scripting technologies for people with no real background knowledge." O.k. I know what they mean (no real background in PowerShell) but for a split-second I was unsure. So I read on…
I have made the PowerShell pdf from Microsoft Switzerland available below. If you truly have no real bacground knowledge, "in PowerShell," this is a good quick-start guide. One example I found interesting was sending output to an .html file. Outputting to HTML is a process I have been doing with VBScript for awhile now. It truly scores points with the Chart and Picture readers aka Upper Management. Here is the example from the book:
foreach { if($_ -like "*<td>Running</td>*") {$_ -replace "<td>", "<tr bgcolor=green>"}
else {$_ -replace "<tr>", "<tr bgcolor=red>"}} >.\get-service.html
The code enumerates each service running on a machine. Services with a status of "running" are placed in a table row that is green. Services with a status of "stopped" are in red. Pretty cool stuff…
Note: Be aware that you should familiarize yourself with page 30 (solutions page) when working with the examples in the book. Trying to do the examples as someone with "no real knowledge" (o.k. last time I mention that) will prove difficult.
Download PDF here. If you have trouble launching Adobe Acrobat, Windows clients can right-click on link and "Save Target As…"
« Cool, the PowerShell scripting guide is Free… | Home | The Script Center Script Repository: Sample Windows PowerShell Scripts »







Comments
I’m very new to powershell and I found this 44 page book a very good start. It dosen’t go deep in any subject but gives us a clear view of what powershell can achieve. I can say the powershell features put a “wow” in any mind.
The examples are worth to run and it show us the powershell power. Also good are the exercises that make us , at least made me, think a bit and understand better the language mechanisms.
I couldn’t make to run just one example : $ie = new-object -comobject internetexplorer.application
It gave me the following error :
CLSID {0002DF01-0000-0000-C000-000000000046} error:80040154.
At line:1 char:17
+ $ie = new-object
Wish to learn everything about this amazing platform. This tool is so good, we would not see many of the implementation goofs from here on.
Leave a Comment