Tag Archives: quickhits

Quick Hits: Listing All Permanent WMI Event Subscriptions

This is a quick script that I put together a while back to help locate and track what systems had WMI event subscriptions configured. I don’t want to completely rehash this topic as you can look at my previous blog … Continue reading

Posted in powershell | Tagged , , , | Leave a comment

Quick Hits: Finding Exception Types with PowerShell

I had a suggestion recently after the posting of my previous article on using Try/Catch for error handling with PowerShell that mentioned that it would be useful to see how to find exceptions that could be caught explicitly vs. using … Continue reading

Posted in powershell | Tagged , , , , | 2 Comments

Quick Hits: Adding Items to an Array and a Look at Performance

I had some comments on a recent performance comparison article that were well received and encouraged me to write some more of these similar articles. So without further ado, lets get started on looking at adding items to an array … Continue reading

Posted in powershell | Tagged , , , , | 8 Comments

Quick Hits: Sending Data to Null

There are times when you do not need to display data in the PowerShell console, but it still wants to show up anyways. A good case is when you are trying to add items to a collection, such as an … Continue reading

Posted in powershell | Tagged , , | 7 Comments

Quick Hits: Did I Really Lose My Output With Receive-Job By Not Using–Keep?

We have all probable been there at some point. We use Start-Job to run a command in the background like this: Start-Job -ScriptBlock { Get-Process | Where { $_.WS -gt 100MB } } -Name HighMemProcess Take note of the HasMoreData … Continue reading

Posted in powershell | Tagged , , , | 2 Comments