I finally finished the last of the tech editing for my new book. The material is now off for copy editing, indexing and publication. Want to know what I’ve been working on?
Tag: powershell
Get-Packet
A few days ago I blogged about packet sniffer PowerShell script. Needless to say I was intrigued and spent some time dissecting to better understand it. Don’t worry, no PowerShell scripts were harmed during this operation. This is a nifty piece of PowerShell coding. Of course I’m never one to leave well enough alone so I had to add a few touches which I hope the original author doesn’t mind.
PowerShell and Schrödinger’s cat
Powershell does not require you to declare variables. For a shell, that makes perfect sense because that would create too much overhead for simple one-off tasks. However, as soon as you start to develop more complex scripts, it is very important to know what scope your dynamically created variables have. Consider the following VBScript: Function […]
PowerShell and the Heisenberg Principle
While developing the PowerShell debugger for PrimalScript 2007 we tested with a large number of scripts. Pretty much anything we could lay our hands on. The following script was one of them. function AreArraysEqual($a1, $a2) { $enum1 = $a1.GetEnumerator() $enum2 = $a2.GetEnumerator() #"$enum1" while ($enum1.MoveNext() -and $enum2.MoveNext()) { if ($enum1.Current […]
Powershell: IP Packet Sniffer Script
I came across a wicked PowerShell script (Trends in Technology: Powershell: IP Packet Sniffer Script ) that is essentially a PowerShell packet sniffer. How cool is that! It certainly won’t replace full blown sniffers like WireShark but I love having a PowerShell window open watching packets. Yea, I need to get out more.
Sign PowerShell Scripts
If you’ve been to any of my PowerShell sessions or classes you know I often recommend using an AllSigned execution policy for your production servers. Assuming you’ve gone ahead and installed a code signing certificate on your desktop, how do you go about signing all your scripts. Here’s how you might sign all your scripts in a given directory.
TechNet Webcast: Managing Hyper-V Virtual Machines with WMI and Windows PowerShell
I don’t know how I missed this, but I hope I can find some time to squeeze it in tomorrow. I’m excited about setting up Hyper-V for all of my test and demo virtual machines. And of course, PowerShell topics are always fun. Wednesday, July 02, 2008 8:00 AM Pacific Time (US & Canada) Event […]
PowerShell MVP x2
I have to admit I was a little nervous about my end of my PowerShell MVP award year. Had I done enough over the last year to maintain it? Or enough to merit a another year? Did I spend enough time in discussion forums? Was I helpful to enough people? Fortunately it appears I was.
Techmentor NYC and Las Vegas
I am slated to speak at this fall’s Techmentor shows in New York City(Sept. 7-10) and Las Vegas (Oct.13-17) . I’ll blog about scheduled sessions at a later date. Although you can assume plenty of PowerShell coverage. I hope you can make it out for one of the shows. TechMentor Conferences If you’ve never been […]
List PowerShell verbs
As you may be aware, PowerShell cmdlets are supposed to be named with a standard verb. I usually suggest that scripters name scripts and functions also using a standard verb, although it is not required and I certainly bend the rules from time to time. Hopefully by now you’re saying to yourself, “Show me the verbs!”