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.

Read More

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 […]

Read More

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 […]

Read More

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.

Read 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.

Read More

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.

Read More

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!”

Read More

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard