Books
Translate This Blog
-
Recent Posts
Top Posts
- Querying UDP Ports with PowerShell
- Changing Ownership of File or Folder Using PowerShell
- Starting,Stopping and Restarting Remote Services with PowerShell
- Avoiding System.Object[] (or Similar Output) when using Export-Csv
- Quick Hits: Finding Exception Types with PowerShell
- Locating Mount Points Using PowerShell
- Using PowerShell Parameter Validation to Make Your Day Easier
- Building a Chart Using PowerShell and Chart Controls
- PowerShell and Excel: Adding Some Formatting To Your Report
- Quick Hits: List All Available WMI Namespaces Using PowerShell
Archives
Categories
- .net
- api
- array
- background jobs
- binary
- book
- c#
- clock
- codeplex
- com object
- convert
- CTP
- database
- deep dive
- excel
- Favorites
- function
- groups
- guest blog
- hash table
- Internet Explorer
- ise
- mcpmag
- module
- MVP
- network
- news
- parameter
- patches
- performance
- pinvoke
- podcast
- port
- PoshChat
- poshpaig
- PoshRSJob
- poshwsus
- powercli
- powerscripting
- Powershell
- printers
- quickhits
- reflection
- regex
- registry
- Regular Expressions
- report
- resolution
- runspace
- runspaces
- scripting games 2012
- scripting games 2013
- scripting guy
- scripts
- SMO
- Speaker
- speaking
- SQL
- tcp
- tips
- tsql
- updates
- user group
- V3
- V4
- v5
- weather
- widget
- win32API
- winter scriting games 2014
- wmi
- word
- WPF
- wsus
- xaml
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
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
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 community, module, pinvoke, Powershell, psreflect, reflection, win32
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
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