Tag Archives: reflection

Tracking the State of PowerShell Runspaces in a Runspacepool

A question that I have received a number of times has always involved a way to determine the state of each runspace that is in a runspacepool. Since a runspacepool is used to throttle the number of runspaces that are … Continue reading

Posted in powershell | Tagged , , , | 3 Comments

Yet Another Way to Get Output from a Runspace, Reflection Edition

While working on some possible feature updates to my module, PoshRSJob, I have been looking at ways to get the output from a runspace without relying on the usual approach of using EndInvoke() while supplying a PowerShellAsyncResult object to pull … Continue reading

Posted in powershell | Tagged , , | Leave a comment

Revisiting NetSession Function using PSReflect

In an article that I wrote a little while ago, I talked about how you can view the net sessions on systems by making use of some pinvoke magic to call some Win32 apis. If you have ever worked with … Continue reading

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

Viewing Net Sessions using PowerShell and PInvoke

We are all used to view net sessions on a local or remote system by calling net session to see what clients are connected to another system such as a file server or even a domain controller. This provides a … Continue reading

Posted in powershell | Tagged , , , | 3 Comments

Quick Hits: Writing to a Read-Only Property

This post is less on doing something useful and more on just proving that I can do something even though PowerShell is trying to tell me that I cannot do it. That little thing is updating a property on an … Continue reading

Posted in powershell | Tagged , , , | 5 Comments