Thursday, June 14, 2007

Canadian PowerShell User Group

Anyone from Canada interested in starting up a Canadian PowerShell user group, please contact me by leaving a comment with your contact information. 

(I'll contact you directly without approving your comment, that way your comment & contact info won't appear here so I can't be blamed for any spam!)

Monday, June 11, 2007

Free PowerShell training in Moncton, NB (Canada)

I live near Moncton, NB (Canada).  I am offering free Windows PowerShell training to any one/any groups looking for in-house training.  Contact me if you're interested by adding a comment here.

My free offer is only available outside of regular business hours though.  For training during business hours, I would have to charge a fee (to replace my normal wages).

I am a technical reviewer...

Due to an NDA, I cannot release much information, but I can mention that I have been accepted as a technical reviewer for a new book from Sapien Technologies.

Thursday, June 7, 2007

PowerShell Remoting example

Just an example of running the new PowerShell Remoting product from /n software

What I'm doing below is SSH'ing to a remote server to run a single command.  I'm returned an object which I then use to further parse after.

I'm just querying a remote server for win32_processor to get the average load percentage of each CPU (4 in this example).

I could easily pump this value into something like PowerGadgets to keep an eye on the CPU utilization.

84# $load=invoke-ssh -server xxxx -user xxxx -password xxxx -command "gwmi win32_
processor" -timeout 30
Do you want to trust the certificate presented?
The server has presented the key below:
Fingerprint: B8:C5:E0:AA:AB:48:D4:F9:3D:D6:5B:FD:9C:5B:40:B6
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
85# ($load|%{if($_.text -like "*loadpercentage*"){$_.text}}).count
4
86# $load|%{if($_.text -like "*loadpercentage*"){[int]$loadt+=[int]$_.text.split(':')[1]}}
87# $loadt/4
1

Wednesday, June 6, 2007

PowerShell... From a BlackBerry!

Using a new PowerShell Remoting application (in beta) from /n software and Mobile SSH from Idokorro, I was able to to a remote SSH session from my BlackBerry to a remote Windows server and run PowerShell commands!

PowerShell Remoting basically gives you a regular terminal window (similar to Telnet), except you are in PowerShell.  No need for all the overhead of any kind of GUI, and you can run this from a mobile!

If you need PowerShell remoting *today*, you should check it out!

Screenshot!

Tuesday, May 29, 2007

Cool application: PowerLocker

William Stacey [C# MVP] has come up with a cool cmdlet: PowerLocker. It allows you to encrypt your PowerShell scripts so you can hide your scripts from being read (and modified). He has been kind enough to provide a free "community" version that can unlock any size script. The "professional" version can lock any size script and is available for a very reasonable $20US or so. It has lots of cool options and is worth checking out.

The site also has a free tool called PowerPad.

Monday, May 14, 2007

.NET Reflector add-on for PowerShell

First blogged by Scott Hanselman, .NET Reflector has an add-on module for PowerShell. I've just loaded it, and it appears to work well.

(Sorry for being so quiet lately. Spring and Summer seem to be the most hectic parts of the year for me.)