Tag Archives: PowerShell

Running Remote Commands And Actually Getting The Output Using Only WMI

If you’ve worked with WMI for any amount of time, you may have run into the following problem: “Creating a remote Windows process using the Win32_Process class is relatively easy, but how do I get the console output?” Have no fear. Win32_Process to the rescue. Wait… no. 🙁 The Create method of the Win32_Process class […]

WMI Performance Tip: Reduce Connections By Reusing Objects in PowerShell

I was about to share this little performance tip with a friend and figured it would be good to show some actual data to back it up. Querying the same WMI class on a remote host multiple times creates multiple connections and multiple queries. Reuse objects to increase performance. Here’s an example of two WMI […]