Tag Archives: hash table

Dealing with Variables in a WinForm Event Handler: An Alternative to Script Scope

I saw a question  with an answer a while back showing how to work around an issue that had previously worked up until PowerShell V3 involving variables and how they work in an event handler in a WinForm or WPF … Continue reading

Posted in powershell | Tagged , , , | 6 Comments

Sharing Variables and Live Objects Between PowerShell Runspaces

I’ve had requests for a while to talk about sharing data between runspaces and I was also asked about this during my recent interview on the Powerscripting Podcast last week. I admit that I have had this article in a … Continue reading

Posted in powershell | Tagged , , , | 13 Comments

PoshChat 1 of 2: Building a Chat Server Using PowerShell

As you have seen in my previous article, I wrote and published version 0.9 of PoshChat, my implementation of a PowerShell client/server chat room. As promised, this is part 1 of  a 2 part article series detailing how I wrote … Continue reading

Posted in powershell, scripts | Tagged , , , | 3 Comments

Creating a Report of Log File Data using Regular Expressions, Arrays and Hash Table

As I was checking my email early in the morning, I saw an email from co-worker asking me to write a script to parse through some logs that were generated from another script that listed the date the script is … Continue reading

Posted in powershell, scripts | Tagged , , , , , | 5 Comments

Custom Powershell Objects and Performance

One of the things that I have been seeing are the different ways to compile a report or to create a collection of custom objects in Powershell.  In fact, there was a comment on a previous post saying that I … Continue reading

Posted in powershell | Tagged , , , , | 5 Comments