Tag Archives: reflection

Building a Enum that Supports Bit Fields in PowerShell

I was working on a project recently that required me to have an Enum that allowed bit fields as opposed to the normal fields that we might deal with in our day to day endeavors with PowerShell. If you aren’t … Continue reading

Posted in powershell | Tagged , , , , | 4 Comments

Finding the PowerShellAsyncResult on PowerShell Object After Using BeginInvoke

I’ve been here many of times when working with the console and creating a PowerShell instance and runspace to kick off a runspace in the background. I have everything situated and then call BeginInvoke() against my PowerShell object and realize … Continue reading

Posted in powershell | Tagged , , , | 2 Comments

Invoking Private Static Methods Using PowerShell

Usually if I want to accomplish a task in PowerShell, I can count on either a cmdlet or a publicly available .Net method to come to my rescue. Sometimes though, a method that I would like to use is just … Continue reading

Posted in powershell | Tagged , , , , | 6 Comments

Managing Privileges using PoshPrivilege

A recent project of mine has been to write a module to manage privileges on a local system. What I came up is a module called PoshPrivilege that allows you to not only look at what user rights are available … Continue reading

Posted in powershell | Tagged , , , , , | 4 Comments

A Look at Implementing $Using: Support in PowerShell for PoshRSJob

After I made my initial release of PoshRSJob, one of the things left that I wanted to accomplish was implementing the $Using: scope that is found when using Invoke-Command or Start-Job which allows you to use an existing variable in … Continue reading

Posted in powershell | Tagged , , , | 1 Comment